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
*/
public static function supportsAdminInterface() {
public function supportsAdminInterface() {
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)) {
$entry = substr($entry, 0, strpos($entry, '.'));
$temp = new $entry($scope);
if ($mustSupportAdminInterface && !$entry::supportsAdminInterface()) {
if ($mustSupportAdminInterface && !$temp->supportsAdminInterface()) {
continue;
}
if ($temp->can_manage()) {