mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
staff message add permission
This commit is contained in:
@@ -32,7 +32,7 @@ class Hook
|
||||
public function applyFilter($name, $value = '')
|
||||
{
|
||||
if (!isset(self::$callbacks[$name])) {
|
||||
do_log("No this hook: $name");
|
||||
do_log("No this hook: $name", 'debug');
|
||||
return $value;
|
||||
}
|
||||
$args = func_get_args();
|
||||
@@ -59,7 +59,7 @@ class Hook
|
||||
public function doAction($name, $value = '')
|
||||
{
|
||||
if (!isset(self::$callbacks[$name])) {
|
||||
do_log("No this hook: $name");
|
||||
do_log("No this hook: $name", 'debug');
|
||||
return;
|
||||
}
|
||||
$args = func_get_args();
|
||||
|
||||
@@ -11,7 +11,7 @@ class Plugin
|
||||
$this->bootPlugins();
|
||||
}
|
||||
|
||||
public function enabled($name): bool
|
||||
public static function enabled($name): bool
|
||||
{
|
||||
return !empty(self::$providers[$name]['providers']);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user