diff --git a/QvitterPlugin.php b/QvitterPlugin.php index 5ea7b40..d348ab0 100644 --- a/QvitterPlugin.php +++ b/QvitterPlugin.php @@ -212,7 +212,11 @@ class QvitterPlugin extends Plugin { if ($this->hijack_ui === true) { - $m->connect('', array('action' => 'qvitter')); + + // other plugins might want to reroute to qvitter + Event::handle('QvitterHijackUI', array($m)); + + $m->connect('', array('action' => 'qvitter')); $m->connect('main/all', array('action' => 'qvitter')); $m->connect('main/public', array('action' => 'qvitter')); $m->connect('search/notice', array('action' => 'qvitter')); diff --git a/actions/qvitter.php b/actions/qvitter.php index c5b3e07..0c99949 100644 --- a/actions/qvitter.php +++ b/actions/qvitter.php @@ -494,7 +494,7 @@ class QvitterAction extends ApiAction -