From: Matthias Schmidt Date: Sat, 5 Jan 2013 17:08:23 +0000 (+0100) Subject: Fixes coding style X-Git-Tag: 2.0.0_Beta_1~586 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8f3fc89726110da7cff9fd2b6b77c94b4e19f12b;p=GitHub%2FWoltLab%2FWCF.git Fixes coding style --- diff --git a/wcfsetup/install/files/lib/system/WCF.class.php b/wcfsetup/install/files/lib/system/WCF.class.php index 3eb5731529..36c24bbc49 100644 --- a/wcfsetup/install/files/lib/system/WCF.class.php +++ b/wcfsetup/install/files/lib/system/WCF.class.php @@ -1,6 +1,7 @@ cacheSource = new \wcf\system\cache\source\DiskCacheSource(); + $this->cacheSource = new DiskCacheSource(); } else { throw $e; diff --git a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php index a66dc2729f..f297fc5f17 100644 --- a/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php @@ -26,6 +26,7 @@ use wcf\system\package\plugin\ObjectTypePackageInstallationPlugin; 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; @@ -539,7 +540,7 @@ class PackageInstallationDispatcher { * @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); } /** diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index b578a6b0ed..e53ea02af3 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -1,6 +1,7 @@ $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();