Use version without -dev
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1492 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
c0cc2a5e4e
commit
86bb5da465
|
@ -230,7 +230,7 @@ foreach (array("adminer", "editor") as $project) {
|
||||||
$file = preg_replace("~<\\?php\\s*\\?>\n?|\\?>\n?<\\?php~", '', $file);
|
$file = preg_replace("~<\\?php\\s*\\?>\n?|\\?>\n?<\\?php~", '', $file);
|
||||||
$file = php_shrink($file);
|
$file = php_shrink($file);
|
||||||
|
|
||||||
$filename = $project . ($DRIVER ? "-$DRIVER" : "") . ($_SESSION["lang"] ? "-$_SESSION[lang]" : "") . ".php"; // . "-$VERSION"
|
$filename = $project . (preg_match('~-dev$~', $VERSION) ? "" : "-$VERSION") . ($DRIVER ? "-$DRIVER" : "") . ($_SESSION["lang"] ? "-$_SESSION[lang]" : "") . ".php";
|
||||||
fwrite(fopen($filename, "w"), $file); // file_put_contents() since PHP 5
|
fwrite(fopen($filename, "w"), $file); // file_put_contents() since PHP 5
|
||||||
echo "$filename created (" . strlen($file) . " B).\n";
|
echo "$filename created (" . strlen($file) . " B).\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue