replaced dynamic static call
This commit is contained in:
parent
2a109c006a
commit
89ade8de45
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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()) {
|
||||||
|
|
Loading…
Reference in New Issue