Removed ACPMenu/PageMenu controller validation
authorAlexander Ebert <ebert@woltlab.com>
Sun, 30 Dec 2012 18:55:27 +0000 (19:55 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 30 Dec 2012 18:55:27 +0000 (19:55 +0100)
wcfsetup/install/files/lib/system/package/plugin/ACPMenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/PageMenuPackageInstallationPlugin.class.php

index e7ad8ad03739d8582aa8ce434cee489e53034f85..23c677d03cb14e96aea85eced39d0a3eccff8805 100644 (file)
@@ -1,7 +1,5 @@
 <?php
 namespace wcf\system\package\plugin;
-use wcf\system\exception\SystemException;
-use wcf\util\ClassUtil;
 
 /**
  * Installs, updates and deletes ACP menu items.
@@ -27,11 +25,6 @@ class ACPMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationPl
                
                // controller
                $result['menuItemController'] = isset($data['elements']['controller']) ? $data['elements']['controller'] : '';
-               if (!empty($result['menuItemController'])) {
-                       if (!ClassUtil::isInstanceOf($result['menuItemController'], 'wcf\action\IAction') && !ClassUtil::isInstanceOf($result['menuItemController'], 'wcf\page\IPage')) {
-                               throw new SystemException("Menu item controller '".$result['menuItemController']."' is not a valid page controller");
-                       }
-               }
                
                return $result;
        }
index 555be9db07ae06b5fb4d89ecabe352f2776ab6a9..a9ee513d85f5c4934981075bcc411b7151c56dff 100644 (file)
@@ -1,7 +1,6 @@
 <?php
 namespace wcf\system\package\plugin;
 use wcf\system\exception\SystemException;
-use wcf\util\ClassUtil;
 
 /**
  * Installs, updates and deletes page page menu items.
@@ -30,11 +29,6 @@ class PageMenuPackageInstallationPlugin extends AbstractMenuPackageInstallationP
                
                // controller
                $result['menuItemController'] = (isset($data['elements']['controller'])) ? $data['elements']['controller'] : '';
-               if (!empty($result['menuItemController'])) {
-                       if (!ClassUtil::isInstanceOf($result['menuItemController'], 'wcf\action\IAction') && !ClassUtil::isInstanceOf($result['menuItemController'], 'wcf\page\IPage')) {
-                               throw new SystemException("Menu item controller '".$result['menuItemController']."' is not a valid page controller");
-                       }
-               }
                
                // class name
                if (!empty($data['elements']['classname'])) {