cablingplan: update the patch file for index.php
authorDenis Ovsienko <infrastation@yandex.ru>
Tue, 9 Apr 2013 19:05:35 +0000 (23:05 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Tue, 9 Apr 2013 19:05:35 +0000 (23:05 +0400)
cablingplan/index.php.patch

index 9ceaa42..8c572ec 100644 (file)
@@ -1,15 +1,13 @@
-===================================================================
---- wwwroot/index.php  (Revision 212)
-+++ wwwroot/index.php  (Revision 215)
-@@ -190,6 +190,11 @@
+--- wwwroot/index.php
++++ wwwroot/index.php
+@@ -262,6 +262,10 @@ try {
                require_once 'inc/install.php';
                renderInstallerHTML();
                break;
-+    case 'rendercablingplan' == $_REQUEST['module']:
-+        require_once 'inc/database.php';
-+        require_once 'inc/cablingplan.php';
-+        renderCablingPlan();
-+        break;
++      case 'rendercablingplan' == $_REQUEST['module']:
++              require_once 'inc/init.php';
++              renderCablingPlan();
++              break;
        default:
                throw new InvalidRequestArgException ('module', $_REQUEST['module']);
        }