add new plugin hook

This commit is contained in:
joyqi 2017-08-15 11:35:38 +08:00
parent 43653242ed
commit 4ac142ce9e

View File

@ -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};
}
}
/**