Added workaround for broken detection of obsolete use tags in zend studio
authorMarcel Werk <burntime@woltlab.com>
Tue, 24 Jun 2014 19:29:08 +0000 (21:29 +0200)
committerMarcel Werk <burntime@woltlab.com>
Tue, 24 Jun 2014 19:29:08 +0000 (21:29 +0200)
wcfsetup/install/files/lib/data/application/Application.class.php

index 9449baea8f85fb130351ecc8f009722f837480b6..12576905b936f75e53d8d4cb0559934e59f61b19 100644 (file)
@@ -1,6 +1,7 @@
 <?php
 namespace wcf\data\application;
 use wcf\data\package\PackageList;
+use wcf\data\package\Package;
 use wcf\data\DatabaseObject;
 use wcf\system\request\RouteHandler;
 use wcf\system\exception\SystemException;
@@ -72,7 +73,8 @@ class Application extends DatabaseObject {
                        $packageList->getConditionBuilder()->add('package.isApplication = ?', array(1));
                        $packageList->readObjects();
                        foreach ($packageList as $package) {
-                               static::$directories[Package::getAbbreviation($package->package)] = FileUtil::addTrailingSlash(FileUtil::getRealPath(WCF_DIR.$package->packageDir));
+                               $abbr = Package::getAbbreviation($package->package);
+                               static::$directories[$abbr] = FileUtil::addTrailingSlash(FileUtil::getRealPath(WCF_DIR.$package->packageDir));
                        }
                }