Importing IllegalLinkException instead of using fully qualified name
authorTim Düsterhus <timwolla@arcor.de>
Mon, 28 Nov 2011 12:48:33 +0000 (13:48 +0100)
committerTim Düsterhus <timwolla@arcor.de>
Mon, 28 Nov 2011 12:48:33 +0000 (13:48 +0100)
Additionally reordered use-Statements.

wcfsetup/install/files/lib/page/AbstractPage.class.php

index 0412f77e0478ad87ce3091a96a6af15236744ed5..06810492957221a2ddfc2aeae1894bcc43500166 100644 (file)
@@ -1,7 +1,8 @@
 <?php
 namespace wcf\page;
-use wcf\system\WCF;
 use wcf\system\event\EventHandler;
+use wcf\system\exception\IllegalLinkException;
+use wcf\system\WCF;
 
 /**
  * This class provides default implementations for the Page interface.
@@ -99,7 +100,7 @@ abstract class AbstractPage implements IPage {
                if (count($this->neededModules)) {
                        foreach ($this->neededModules as $module) {
                                if (!defined($module) || !constant($module)) {
-                                       throw new \wcf\system\exception\IllegalLinkException();
+                                       throw new IllegalLinkException();
                                }
                        }
                }