From 9eb4b62cd0c9b712f2ea910d2cfad94030d3845b Mon Sep 17 00:00:00 2001
From: Eric Lippmann <eric.lippmann@netways.de>
Date: Mon, 28 Jul 2014 19:15:44 +0200
Subject: [PATCH] doc: Register PDF route

refs #4820
---
 modules/doc/run.php | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/modules/doc/run.php b/modules/doc/run.php
index 592d85ede..eaab1cb05 100644
--- a/modules/doc/run.php
+++ b/modules/doc/run.php
@@ -34,7 +34,17 @@ $docModuleToc = new Zend_Controller_Router_Route(
     )
 );
 
+$docModulePdf = new Zend_Controller_Router_Route(
+    'doc/module/:moduleName/pdf',
+    array(
+        'controller'    => 'module',
+        'action'        => 'pdf',
+        'module'        => 'doc'
+    )
+);
+
 $this->addRoute('doc/module/chapter', $docModuleChapter);
 $this->addRoute('doc/icingaweb/chapter', $docIcingaWebChapter);
 $this->addRoute('doc/module/toc', $docModuleToc);
+$this->addRoute('doc/module/pdf', $docModulePdf);