call_user_func('class::method', ...) is PHP 5.3+

This commit is contained in:
Ralf Becker 2010-10-15 20:08:54 +00:00
parent 15c8775a80
commit b4f0f31681

View File

@ -163,6 +163,10 @@ class filemanager_ui
} }
$view = self::get_view(); $view = self::get_view();
if (strpos($view,'::') !== false && version_compare(PHP_VERSION,'5.3.0','<'))
{
$view = explode('::',$view);
}
call_user_func($view,$content,$msg); call_user_func($view,$content,$msg);
} }