From 89ade8de45cb5ba4fc795cc6ca7351a08eed3885 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 26 Sep 2012 17:36:22 +0000 Subject: [PATCH] replaced dynamic static call --- lam/lib/baseModule.inc | 2 +- lam/lib/modules.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lam/lib/baseModule.inc b/lam/lib/baseModule.inc index f91d40f5..2d55b668 100644 --- a/lam/lib/baseModule.inc +++ b/lam/lib/baseModule.inc @@ -1432,7 +1432,7 @@ abstract class baseModule { * * @return boolean support admin interface */ - public static function supportsAdminInterface() { + public function supportsAdminInterface() { return true; } diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index 68f3da08..54f407e2 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -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()) {