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 | ||||
| 	 */ | ||||
| 	public static function supportsAdminInterface() { | ||||
| 	public function supportsAdminInterface() { | ||||
| 		return true; | ||||
| 	} | ||||
| 	 | ||||
|  |  | |||
|  | @ -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()) { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue