Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use $filename

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@858 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit c02bd441cad53bdc8efee9bdca648997b0c9284d 1 parent 943a3e8
jakubvrana authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 compile.php
View
4 compile.php
@@ -211,5 +211,7 @@ function compile_file($match) {
$file = str_replace("../externals/jush/", "http://jush.sourceforge.net/", $file);
$file = preg_replace("~<\\?php\\s*\\?>\n?|\\?>\n?<\\?php~", '', $file);
$file = php_shrink($file);
-fwrite(fopen($project . ($_COOKIE["adminer_lang"] ? "-$_COOKIE[adminer_lang]" : "") . ".php", "w"), $file); // file_put_contents() since PHP 5
+
+$filename = $project . ($_COOKIE["adminer_lang"] ? "-$_COOKIE[adminer_lang]" : "") . ".php";
+fwrite(fopen($filename, "w"), $file); // file_put_contents() since PHP 5
echo "$filename created.\n";
Please sign in to comment.
Something went wrong with that request. Please try again.