mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-14 20:18:00 +00:00
remove dynamic extensions
This commit is contained in:
@@ -700,7 +700,9 @@ function getAllContentFiletypes()
|
||||
$controllers = loadAllContentControllers();
|
||||
foreach($controllers as $c)
|
||||
{
|
||||
$types = array_merge($types,(new $c)->getRegisteredExtensions());
|
||||
$instance = new $c;
|
||||
if($instance::ctype=='static')
|
||||
$types = array_merge($types,(new $instance)->getRegisteredExtensions());
|
||||
}
|
||||
|
||||
return $types;
|
||||
|
||||
Reference in New Issue
Block a user