mirror of
https://github.com/typecho/typecho.git
synced 2025-03-31 00:02:25 +02:00
add new plugin hook
This commit is contained in:
parent
43653242ed
commit
4ac142ce9e
@ -362,7 +362,12 @@ abstract class Typecho_Widget
|
||||
*/
|
||||
public function __call($name, $args)
|
||||
{
|
||||
echo $this->{$name};
|
||||
$method = 'call' . ucfirst($name);
|
||||
$this->pluginHandle()->trigger($plugged)->{$method}($this, $args);
|
||||
|
||||
if (!$plugged) {
|
||||
echo $this->{$name};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user