replaced dynamic static call

This commit is contained in:
Roland Gruber 2012-09-26 17:36:22 +00:00
parent 2a109c006a
commit 89ade8de45
2 changed files with 2 additions and 2 deletions

View File

@ -1432,7 +1432,7 @@ abstract class baseModule {
* *
* @return boolean support admin interface * @return boolean support admin interface
*/ */
public static function supportsAdminInterface() { public function supportsAdminInterface() {
return true; return true;
} }

View File

@ -259,7 +259,7 @@ function getAvailableModules($scope, $mustSupportAdminInterface = false) {
if ((substr($entry, strlen($entry) - 4, 4) == '.inc') && is_file($dirname . '/'.$entry)) { if ((substr($entry, strlen($entry) - 4, 4) == '.inc') && is_file($dirname . '/'.$entry)) {
$entry = substr($entry, 0, strpos($entry, '.')); $entry = substr($entry, 0, strpos($entry, '.'));
$temp = new $entry($scope); $temp = new $entry($scope);
if ($mustSupportAdminInterface && !$entry::supportsAdminInterface()) { if ($mustSupportAdminInterface && !$temp->supportsAdminInterface()) {
continue; continue;
} }
if ($temp->can_manage()) { if ($temp->can_manage()) {