mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 23:57:29 +02:00
Don't report E_DEPRECATED
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@790 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -166,7 +166,7 @@ function compile_file($match) {
|
|||||||
return call_user_func($match[2], file_get_contents(dirname(__FILE__) . "/adminer/$match[1]"));
|
return call_user_func($match[2], file_get_contents(dirname(__FILE__) . "/adminer/$match[1]"));
|
||||||
}
|
}
|
||||||
|
|
||||||
error_reporting(E_ALL & ~E_NOTICE);
|
error_reporting(4343); // errors and warnings
|
||||||
$project = "adminer";
|
$project = "adminer";
|
||||||
if (file_exists($_SERVER["argv"][1] . "/index.php")) {
|
if (file_exists($_SERVER["argv"][1] . "/index.php")) {
|
||||||
$project = $_SERVER["argv"][1];
|
$project = $_SERVER["argv"][1];
|
||||||
|
2
lang.php
2
lang.php
@@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
error_reporting(E_ALL & ~E_NOTICE);
|
error_reporting(4343); // errors and warnings
|
||||||
if ($_SERVER["argc"] > 1) {
|
if ($_SERVER["argc"] > 1) {
|
||||||
$_COOKIE["adminer_lang"] = $_SERVER["argv"][1]; // Adminer functions read language from cookie
|
$_COOKIE["adminer_lang"] = $_SERVER["argv"][1]; // Adminer functions read language from cookie
|
||||||
include dirname(__FILE__) . "/adminer/include/lang.inc.php";
|
include dirname(__FILE__) . "/adminer/include/lang.inc.php";
|
||||||
|
Reference in New Issue
Block a user