Skip to content

Commit

Permalink
Added workaround for broken detection of obsolete use tags in zend st…
Browse files Browse the repository at this point in the history
…udio
  • Loading branch information
BurntimeX committed Jun 24, 2014
1 parent 7295e99 commit 0810158
Showing 1 changed file with 3 additions and 1 deletion.
@@ -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;
Expand Down Expand Up @@ -72,7 +73,8 @@ public static function getDirectory($abbreviation) {
$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));
}
}

Expand Down

0 comments on commit 0810158

Please sign in to comment.