<?php
namespace wcf\system;
use wcf\data\application\Application;
+use wcf\data\option\OptionEditor;
use wcf\data\package\PackageCache;
use wcf\system\application\ApplicationHandler;
use wcf\system\cache\CacheHandler;
// create options file if doesn't exist
if (!file_exists($filename) || filemtime($filename) <= 1) {
- \wcf\data\option\OptionEditor::rebuild();
+ OptionEditor::rebuild();
}
require_once($filename);
}
<?php
namespace wcf\system\cache;
+use wcf\system\cache\source\DiskCacheSource;
use wcf\system\exception\SystemException;
use wcf\system\SingletonFactory;
catch (SystemException $e) {
if (CACHE_SOURCE_TYPE != 'disk') {
// fallback to disk cache
- $this->cacheSource = new \wcf\system\cache\source\DiskCacheSource();
+ $this->cacheSource = new DiskCacheSource();
}
else {
throw $e;
use wcf\system\package\plugin\SQLPackageInstallationPlugin;
use wcf\system\request\LinkHandler;
use wcf\system\request\RouteHandler;
+use wcf\system\setup\Installer;
use wcf\system\style\StyleHandler;
use wcf\system\version\VersionHandler;
use wcf\system\WCF;
* @return wcf\system\setup\Installer
*/
public function extractFiles($targetDir, $sourceArchive, $fileHandler = null) {
- return new \wcf\system\setup\Installer($targetDir, $sourceArchive, $fileHandler);
+ return new Installer($targetDir, $sourceArchive, $fileHandler);
}
/**
<?php
namespace wcf\system\session;
use wcf\data\user\User;
+use wcf\page\ITrackablePage;
use wcf\system\cache\CacheHandler;
use wcf\system\exception\PermissionDeniedException;
use wcf\system\request\RequestHandler;
'requestMethod' => $this->requestMethod,
'lastActivityTime' => TIME_NOW
);
- if (PACKAGE_ID && RequestHandler::getInstance()->getActiveRequest() && RequestHandler::getInstance()->getActiveRequest()->getRequestObject() instanceof \wcf\page\ITrackablePage && RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->isTracked()) {
+ if (PACKAGE_ID && RequestHandler::getInstance()->getActiveRequest() && RequestHandler::getInstance()->getActiveRequest()->getRequestObject() instanceof ITrackablePage && RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->isTracked()) {
$data['controller'] = RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->getController();
$data['parentObjectType'] = RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->getParentObjectType();
$data['parentObjectID'] = RequestHandler::getInstance()->getActiveRequest()->getRequestObject()->getParentObjectID();