mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 14:20:47 +08:00
parent
c5e3e26d07
commit
17dfb58590
|
@ -61,6 +61,12 @@ class Site
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
return array_flatten(require $extenderFile);
|
$extenders = require $extenderFile;
|
||||||
|
|
||||||
|
if (! is_array($extenders)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
return array_flatten($extenders);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user