mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 18:14:07 +02:00
Remove spaces and comments can be achieved by php_strip_whitespace() but 2% slim doesn't outweight the resulting mess
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@79 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -40,6 +40,5 @@ if ($_SESSION["lang"]) {
|
|||||||
$file = str_replace("<?php switch_lang(); ?>\n", "", $file);
|
$file = str_replace("<?php switch_lang(); ?>\n", "", $file);
|
||||||
$file = str_replace("<?php echo get_lang(); ?>", $_SESSION["lang"], $file);
|
$file = str_replace("<?php echo get_lang(); ?>", $_SESSION["lang"], $file);
|
||||||
}
|
}
|
||||||
//! remove spaces and comments
|
|
||||||
file_put_contents($filename, $file);
|
file_put_contents($filename, $file);
|
||||||
echo "$filename created.\n";
|
echo "$filename created.\n";
|
||||||
|
Reference in New Issue
Block a user