Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use static methods in Adminer

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@808 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
commit 4452cd11e2e60c30d016060eb4ac0e1311e80890 1 parent 1ef58da
jakubvrana authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 adminer/include/functions.inc.php
View
8 adminer/include/functions.inc.php
@@ -377,14 +377,10 @@ function email_header($header) {
}
function call_adminer($method, $default, $arg1 = null, $arg2 = null) {
- static $adminer;
- if (!isset($adminer)) {
- $adminer = (class_exists('Adminer') ? new Adminer : false); // user defined class
- }
// maintains original method name in minification
- if (method_exists($adminer, $method)) {
+ if (method_exists('Adminer', $method)) { // user defined class
// can use func_get_args() and call_user_func_array()
- return $adminer->$method($arg1, $arg2);
+ return Adminer::$method($arg1, $arg2);
}
return $default; //! $default is evaluated even if not neccessary
}
Please sign in to comment.
Something went wrong with that request. Please try again.