mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 02:32:45 +08:00
Don't break compatibility with extensions that return a function name
eg. s9e/mediaembed
This commit is contained in:
parent
557a65aadd
commit
7651907f56
|
@ -292,7 +292,7 @@ class ExtensionManager
|
|||
// If an extension has not yet switched to the new bootstrap.php
|
||||
// format, it might return a function (or more of them). We wrap
|
||||
// these in a Compat extender to enjoy an unique interface.
|
||||
if ($extender instanceof \Closure) {
|
||||
if ($extender instanceof \Closure || is_string($extender)) {
|
||||
return new Compat($extender);
|
||||
} else {
|
||||
return $extender;
|
||||
|
|
Loading…
Reference in New Issue
Block a user