X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fdoc.php;h=d59c63631a4c02049f8b29ae4042c4ee37110b65;hb=fe11f9a28c8ef2df46e09c53276f8d2184b03f2e;hp=8d6c16c594e3c787c65f7f1f7dc5df0d7d6e1c12;hpb=627d84a1e2db2aca5d2ce1272f6e83fb7faa8ad2;p=quix0rs-gnu-social.git diff --git a/actions/doc.php b/actions/doc.php index 8d6c16c594..d59c63631a 100644 --- a/actions/doc.php +++ b/actions/doc.php @@ -174,11 +174,15 @@ class DocNav extends Menu { function show() { - $stub = new HomeStubNav($this->action); - $this->submenu(_m('MENU','Home'), $stub); - - $docs = new DocListNav($this->action); - $this->submenu(_m('MENU','Docs'), $docs); + if (Event::handle('StartDocNav', array($this))) { + $stub = new HomeStubNav($this->action); + $this->submenu(_m('MENU','Home'), $stub); + + $docs = new DocListNav($this->action); + $this->submenu(_m('MENU','Docs'), $docs); + + Event::handle('EndDocNav', array($this)); + } } }