Error codes removed
authorMarcel Werk <burntime@woltlab.com>
Mon, 8 Aug 2011 12:46:25 +0000 (14:46 +0200)
committerMarcel Werk <burntime@woltlab.com>
Mon, 8 Aug 2011 12:46:25 +0000 (14:46 +0200)
54 files changed:
wcfsetup/install.php
wcfsetup/install/files/lib/acp/form/AbstractOptionListForm.class.php
wcfsetup/install/files/lib/acp/form/UserGroupAddForm.class.php
wcfsetup/install/files/lib/acp/page/UserListPage.class.php
wcfsetup/install/files/lib/data/language/LanguageEditor.class.php
wcfsetup/install/files/lib/data/style/StyleEditor.class.php
wcfsetup/install/files/lib/system/WCF.class.php
wcfsetup/install/files/lib/system/WCFSetup.class.php
wcfsetup/install/files/lib/system/cache/CacheHandler.class.php
wcfsetup/install/files/lib/system/cache/builder/CacheBuilderUserGroupPermission.class.php
wcfsetup/install/files/lib/system/cleanup/CleanupHandler.class.php
wcfsetup/install/files/lib/system/cronjob/CronjobScheduler.class.php
wcfsetup/install/files/lib/system/event/EventHandler.class.php
wcfsetup/install/files/lib/system/exception/SystemException.class.php
wcfsetup/install/files/lib/system/io/FTP.class.php
wcfsetup/install/files/lib/system/io/File.class.php
wcfsetup/install/files/lib/system/io/GZipFile.class.php
wcfsetup/install/files/lib/system/io/RemoteFile.class.php
wcfsetup/install/files/lib/system/io/Tar.class.php
wcfsetup/install/files/lib/system/language/LanguageServerProcessor.class.php
wcfsetup/install/files/lib/system/mail/SMTPMailSender.class.php
wcfsetup/install/files/lib/system/package/ACPTemplatesFileHandler.class.php
wcfsetup/install/files/lib/system/package/PackageArchive.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationDispatcher.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationSQLParser.class.php
wcfsetup/install/files/lib/system/package/PackageInstallationScheduler.class.php
wcfsetup/install/files/lib/system/package/PackageUpdateDispatcher.class.php
wcfsetup/install/files/lib/system/package/plugin/AbstractMenuPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/AbstractOptionPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/AbstractXMLPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/GroupOptionsPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/LanguagesPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/OptionsPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/SQLPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/package/plugin/UserOptionsPackageInstallationPlugin.class.php
wcfsetup/install/files/lib/system/request/RequestHandler.class.php
wcfsetup/install/files/lib/system/setup/Installer.class.php
wcfsetup/install/files/lib/system/style/StyleHandler.class.php
wcfsetup/install/files/lib/system/template/SetupTemplateEngine.class.php
wcfsetup/install/files/lib/system/template/TemplateEngine.class.php
wcfsetup/install/files/lib/system/template/TemplateScriptingCompiler.class.php
wcfsetup/install/files/lib/system/template/plugin/TemplatePluginCompilerAppend.class.php
wcfsetup/install/files/lib/system/template/plugin/TemplatePluginCompilerAssign.class.php
wcfsetup/install/files/lib/system/template/plugin/TemplatePluginCompilerFetch.class.php
wcfsetup/install/files/lib/system/template/plugin/TemplatePluginCompilerImplode.class.php
wcfsetup/install/files/lib/system/template/plugin/TemplatePluginCompilerPrepend.class.php
wcfsetup/install/files/lib/system/template/plugin/TemplatePluginFunctionCycle.class.php
wcfsetup/install/files/lib/system/template/plugin/TemplatePluginFunctionHtmlcheckboxes.class.php
wcfsetup/install/files/lib/system/template/plugin/TemplatePluginFunctionHtmloptions.class.php
wcfsetup/install/files/lib/system/template/plugin/TemplatePluginFunctionPages.class.php
wcfsetup/install/files/lib/system/template/plugin/TemplatePluginFunctionSmallpages.class.php
wcfsetup/install/files/lib/system/template/plugin/TemplatePluginModifierConcat.class.php
wcfsetup/install/files/lib/util/BasicFileUtil.class.php
wcfsetup/install/files/lib/util/FileUtil.class.php

index 9bce470740da47673c43e7f21af9ebe80023eb41..919f4cfe4ad552021edaf160618e0e99c7d5f93f 100644 (file)
@@ -257,7 +257,7 @@ class BasicFileUtil {
                        array_pop($tmpDir);
                        $dir = implode('/', $tmpDir);
                        
-                       throw new SystemException('There is no access to the system temporary folder due to an unknown reason and no user specific temporary folder exists in '.INSTALL_SCRIPT_DIR.'! This is a misconfiguration of your webserver software! Please create a folder called '.$dir.' using your favorite ftp program, make it writable and then retry this installation.', 10000);
+                       throw new SystemException('There is no access to the system temporary folder due to an unknown reason and no user specific temporary folder exists in '.INSTALL_SCRIPT_DIR.'! This is a misconfiguration of your webserver software! Please create a folder called '.$dir.' using your favorite ftp program, make it writable and then retry this installation.');
                }
                
                return $dir;
@@ -293,7 +293,7 @@ class Tar {
        public function __construct($archiveName) {
                $match = array();
                if (!is_file($archiveName)) {
-                       throw new SystemException("unable to find tar archive '".$archiveName."'", 11002);
+                       throw new SystemException("unable to find tar archive '".$archiveName."'");
                }
                
                $this->archiveName = $archiveName;
@@ -366,7 +366,7 @@ class Tar {
                }
                
                if (!isset($this->contentList[$fileIndex])) {
-                       throw new SystemException("Tar: could find file '$index' in archive", 11013);
+                       throw new SystemException("Tar: could find file '$index' in archive");
                }
                return $this->contentList[$fileIndex];
        }
@@ -474,7 +474,7 @@ class Tar {
                
                // check filesize
                if (filesize($destination) != $header['size']) {
-                       throw new SystemException("Could not untar file '".$header['filename']."' to '".$destination."'. Maybe disk quota exceeded in folder '".dirname($destination)."'.", 11015);
+                       throw new SystemException("Could not untar file '".$header['filename']."' to '".$destination."'. Maybe disk quota exceeded in folder '".dirname($destination)."'.");
                }
                
                return true;
@@ -595,7 +595,7 @@ class File {
                $this->filename = $filename;
                $this->resource = fopen($filename, $mode);
                if ($this->resource === false) {
-                       throw new SystemException('Can not open file ' . $filename, 11012);
+                       throw new SystemException('Can not open file ' . $filename);
                }
        }
        
@@ -616,7 +616,7 @@ class File {
                        return call_user_func_array($function, $arguments);
                }
                else {
-                       throw new SystemException('Can not call file method ' . $function, 11003);
+                       throw new SystemException('Can not call file method ' . $function);
                }
        }
 }
@@ -636,11 +636,11 @@ class ZipFile extends File {
        public function __construct($filename, $mode = 'wb') {
                $this->filename = $filename;
                if (!function_exists('gzopen')) {
-                       throw new SystemException('Can not find functions of the zlib extension', 11004);
+                       throw new SystemException('Can not find functions of the zlib extension');
                }
                $this->resource = @gzopen($filename, $mode);
                if ($this->resource === false) {
-                       throw new SystemException('Can not open file ' . $filename, 11012);
+                       throw new SystemException('Can not open file ' . $filename);
                }
        }
        
@@ -660,7 +660,7 @@ class ZipFile extends File {
                        return call_user_func_array($function, $arguments);
                }
                else {
-                       throw new SystemException('Can not call method ' . $function, 11003);
+                       throw new SystemException('Can not call method ' . $function);
                }
        }
        
@@ -720,7 +720,7 @@ if (!file_exists(TMP_DIR . 'install/files/lib/system/WCFSetup.class.php')) {
        $tar = new Tar(SETUP_FILE);
        $contentList = $tar->getContentList();
        if (!count($contentList)) {
-               throw new SystemException("Can not unpack 'WCFSetup.tar.gz'. File is probably broken.", 11016);
+               throw new SystemException("Can not unpack 'WCFSetup.tar.gz'. File is probably broken.");
        }
        
        foreach ($contentList as $file) {
@@ -748,7 +748,7 @@ if (!file_exists(TMP_DIR . 'install/files/lib/system/WCFSetup.class.php')) {
 }
 
 if (!class_exists('wcf\system\WCFSetup')) {
-       throw new SystemException("Can not find class 'WCFSetup'", 11006);
+       throw new SystemException("Can not find class 'WCFSetup'");
 }
 
 // start setup
index 324f18c495191f41c0c23249ead1640c7eb87d36..c67fb0c667306dfb18a6edeb97b332f77bdbb756 100755 (executable)
@@ -115,7 +115,7 @@ abstract class AbstractOptionListForm extends AbstractForm {
                        
                        // validate class
                        if (!class_exists($className)) {
-                               throw new SystemException("unable to find class '".$className."'", 11001);
+                               throw new SystemException("unable to find class '".$className."'");
                        }
                        if (!ClassUtil::isInstanceOf($className, 'wcf\system\option\IOptionType')) {
                                throw new SystemException("'".$className."' should implement wcf\system\option\IOptionType");
index fbb6c10cef261885ea2cb1ed8649012e3c44a8fa..5094c191618a69675f9ecbd4e9e15c0298d375e5 100755 (executable)
@@ -191,10 +191,10 @@ class UserGroupAddForm extends AbstractOptionListForm {
                        
                        // create instance
                        if (!class_exists($className)) {
-                               throw new SystemException("unable to find class '".$className."'", 11001);
+                               throw new SystemException("unable to find class '".$className."'");
                        }
                        if (!ClassUtil::isInstanceOf($className, 'wcf\system\option\group\IGroupOptionType')) {
-                               throw new SystemException("'".$className."' should implement wcf\system\option\group\IGroupOptionType", 11001);
+                               throw new SystemException("'".$className."' should implement wcf\system\option\group\IGroupOptionType");
                        }
                        $this->typeObjects[$type] = new $className();
                }
index b79e06bd8c900e3df98d7c8fe65da2489bf60f0e..f275f474e81cd417dd7bd54d3485dca2f275fc4c 100755 (executable)
@@ -303,13 +303,13 @@ class UserListPage extends SortablePage {
                        // include class file
                        $classPath = WCF_DIR.'lib/data/user/option/'.$className.'.class.php';
                        if (!file_exists($classPath)) {
-                               throw new SystemException("unable to find class file '".$classPath."'", 11000);
+                               throw new SystemException("unable to find class file '".$classPath."'");
                        }
                        require_once($classPath);
                        
                        // create instance
                        if (!class_exists($className)) {
-                               throw new SystemException("unable to find class '".$className."'", 11001);
+                               throw new SystemException("unable to find class '".$className."'");
                        }
                        $this->outputObjects[$className] = new $className();
                }
index ce7c808c1d1857f55b4aa1f532309d27a62f81b4..f029106405d683b23ff0e9c82c52980bc9cbe4a5 100644 (file)
@@ -325,7 +325,7 @@ class LanguageEditor extends DatabaseObjectEditor {
                        }
                }
                
-               throw new SystemException("missing attribute 'languagecode' in language file", 13023);
+               throw new SystemException("missing attribute 'languagecode' in language file");
        }
        
        /**
index dbed8c4365e10884b55575fde708a94b6adde7a8..825d0a6ba6d02034290e2f354949a1056ab73f66 100644 (file)
@@ -116,7 +116,7 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                // search style.xml
                $i = $tar->getIndexByFilename(self::INFO_FILE);
                if ($i === false) {
-                       throw new SystemException("unable to find required file '".self::INFO_FILE."' in style archive", 100001);
+                       throw new SystemException("unable to find required file '".self::INFO_FILE."' in style archive"1);
                }
                
                // open style.xml
@@ -161,16 +161,16 @@ class StyleEditor extends DatabaseObjectEditor implements IEditableCachedObject
                }
                
                if (empty($data['name'])) {
-                       throw new SystemException("required tag 'stylename' is missing in '".self::INFO_FILE."'", 100002);
+                       throw new SystemException("required tag 'stylename' is missing in '".self::INFO_FILE."'"2);
                }
                if (empty($data['variables'])) {
-                       throw new SystemException("required tag 'variables' is missing in '".self::INFO_FILE."'", 100002);
+                       throw new SystemException("required tag 'variables' is missing in '".self::INFO_FILE."'"2);
                }
                
                // search variables.xml
                $i = $tar->getIndexByFilename($data['variables']);
                if ($i === false) {
-                       throw new SystemException("unable to find required file '".$data['variables']."' in style archive", 100001);
+                       throw new SystemException("unable to find required file '".$data['variables']."' in style archive"1);
                }
                
                // open variables.xml
index abae90261ad1d7dfcfe205df9ddffc9021bd0e46..f5d64616ea58c251208b702abac22c99a0bfe89e 100644 (file)
@@ -542,7 +542,7 @@ class WCF {
                
                if (class_exists($objectName)) {
                        if (!(util\ClassUtil::isInstanceOf($objectName, 'wcf\system\SingletonFactory'))) {
-                               throw new exception\SystemException("class '".$objectName."' does not implement the interface 'SingletonFactory'", 11010);
+                               throw new exception\SystemException("class '".$objectName."' does not implement the interface 'SingletonFactory'");
                        }
                        
                        self::$coreObject[$className] = call_user_func(array($objectName, 'getInstance'));
index 492d70592c8f0706d502c6ac2df51aa2d3f23112..1778490c669fed660f431f680d84d1afd0ee7ce0 100644 (file)
@@ -778,7 +778,7 @@ class WCFSetup extends WCF {
                        
                        // check the file
                        if (!file_exists($filename)) {
-                               throw new SystemException("unable to find language file '".$filename."'", 11002);
+                               throw new SystemException("unable to find language file '".$filename."'");
                        }
                        
                        // open the file
@@ -994,7 +994,7 @@ class WCFSetup extends WCF {
                $row = $statement->fetchArray();
                if (!$row['count']) {
                        if (empty($wcfPackageFile)) {
-                               throw new SystemException('the essential package com.woltlab.wcf is missing.', 11007);
+                               throw new SystemException('the essential package com.woltlab.wcf is missing.');
                        }
                        
                        // register essential wcf package
index b3505de410796ee9038a0f5b1374f5585422fc08..4cba243a5683b66d84bb00755c2050f9df496e41 100644 (file)
@@ -71,7 +71,7 @@ class CacheHandler extends SingletonFactory {
         */
        public function clearResource($cache) {
                if (!isset($this->cacheResources[$cache])) {
-                       throw new SystemException("cache resource '".$cache."' does not exist", 11005);
+                       throw new SystemException("cache resource '".$cache."' does not exist");
                }
                
                $this->getCacheSource()->delete($this->cacheResources[$cache]);
@@ -96,7 +96,7 @@ class CacheHandler extends SingletonFactory {
         */
        public function get($cache, $variable = '') {
                if (!isset($this->cacheResources[$cache])) {
-                       throw new SystemException("unknown cache resource '".$cache."'", 11005);
+                       throw new SystemException("unknown cache resource '".$cache."'");
                }
                
                // try to get value
@@ -108,14 +108,14 @@ class CacheHandler extends SingletonFactory {
                        // try to get value again
                        $value = $this->getCacheSource()->get($this->cacheResources[$cache]);
                        if ($value === null) {
-                               throw new SystemException("cache resource '".$cache."' does not exist", 11005);
+                               throw new SystemException("cache resource '".$cache."' does not exist");
                        }
                }
                
                // return value
                if (!empty($variable)) {
                        if (!isset($value[$variable])) {
-                               throw new SystemException("variable '".$variable."' does not exist in cache resource '".$cache."'", 11008);
+                               throw new SystemException("variable '".$variable."' does not exist in cache resource '".$cache."'");
                        }
                        
                        return $value[$variable];
@@ -134,7 +134,7 @@ class CacheHandler extends SingletonFactory {
        public function rebuild($cacheResource) {
                // instance cache class
                if (!class_exists($cacheResource['className'])) {
-                       throw new SystemException("Unable to find class '".$cacheResource['className']."'", 11001);
+                       throw new SystemException("Unable to find class '".$cacheResource['className']."'");
                }
                
                // update file last modified time to avoid multiple users rebuilding cache at the same time
index dcce1093455c4a1d889463aaf5f353d40cc2200c..81e76303f7b364c5918d9909afb1c92153fd181b 100644 (file)
@@ -108,7 +108,7 @@ class CacheBuilderUserGroupPermission implements ICacheBuilder {
                        
                        // validate class
                        if (!class_exists($className)) {
-                               throw new SystemException("unable to find class '".$className."'", 11001);
+                               throw new SystemException("unable to find class '".$className."'");
                        }
                        if (!ClassUtil::isInstanceOf($className, 'wcf\system\option\group\IGroupOptionType')) {
                                throw new SystemException("'".$className."' should implement wcf\system\option\group\IGroupOptionType");
index 9e2df63221aa893e22eb16df1023d323784a62d1..0d920bf39c8741d07913435dfcd0a190754e0b99 100644 (file)
@@ -107,12 +107,12 @@ class CleanupHandler {
                foreach ($adapters as $adapterData) {
                        // validate class
                        if (!class_exists($adapterData['className'])) {
-                               throw new SystemException("unable to find class '".$adapterData['className']."'", 11001);
+                               throw new SystemException("unable to find class '".$adapterData['className']."'");
                        }
                        
                        // validate interface
                        if (!(ClassUtil::isInstanceOf($adapterData['className'], 'wcf\system\cleanup\ICleanupAdapter'))) {
-                               throw new SystemException("class '".$adapterData['className']."' does not implement the interface 'wcf\system\cleanup\ICleanupAdapter'", 11010);
+                               throw new SystemException("class '".$adapterData['className']."' does not implement the interface 'wcf\system\cleanup\ICleanupAdapter'");
                        }
                        
                        $adapter = new $adapterData['className']();
index 3714104aa5392b02d4912c81af28a9de960a09ff..c8c308efe4669754f7b09a3a0389e21a0f112316 100644 (file)
@@ -138,12 +138,12 @@ abstract class CronjobScheduler {
        protected static function executeCronjob(CronjobEditor $cronjobEditor, CronjobLogEditor $logEditor) {
                $className = $cronjobEditor->className;
                if (!class_exists($className)) {
-                       throw new SystemException("unable to find class '".$className."'", 11001);
+                       throw new SystemException("unable to find class '".$className."'");
                }
                
                // verify class signature
                if (!(ClassUtil::isInstanceOf($className, 'wcf\system\cronjob\ICronjob'))) {
-                       throw new SystemException("class '".$className."' does not implement the interface 'wcf\system\cronjob\ICronjob'", 11010);
+                       throw new SystemException("class '".$className."' does not implement the interface 'wcf\system\cronjob\ICronjob'");
                }
                
                // execute cronjob
index 3b954c89fdfcbf26a0adcb362b73428ec080f08e..4efb9d529ae9355919ab9b8bb750a9550ad0317c 100644 (file)
@@ -100,7 +100,7 @@ class EventHandler extends SingletonFactory {
                                                                $object = null;
                                                                // instance action object
                                                                if (!class_exists($action['listenerClassName'])) {
-                                                                       throw new SystemException("Unable to find class '".$action['listenerClassName']."'", 11001);
+                                                                       throw new SystemException("Unable to find class '".$action['listenerClassName']."'");
                                                                }
                                                                if (!ClassUtil::isInstanceOf($action['listenerClassName'], 'wcf\system\event\IEventListener')) {
                                                                        throw new SystemException("'".$action['listenerClassName']."' should implement interface wcf\system\event\IEventListener");
@@ -165,7 +165,7 @@ class EventHandler extends SingletonFactory {
                                else {
                                        // instance action object
                                        if (!class_exists($action['listenerClassName'])) {
-                                               throw new SystemException("Unable to find class '".$action['listenerClassName']."'", 11001);
+                                               throw new SystemException("Unable to find class '".$action['listenerClassName']."'");
                                        }
                                        if (!ClassUtil::isInstanceOf($action['listenerClassName'], 'wcf\system\event\IEventListener')) {
                                                throw new SystemException("'".$action['listenerClassName']."' should implement interface wcf\system\event\IEventListener");
index b8034abfadc16ed294b3f8733199ee0c0be6d131..8a3efabf9df18f9b5e050931588ec09f8840261e 100644 (file)
@@ -125,8 +125,7 @@ class SystemException extends \Exception implements IPrintableException {
 
                                        <div>
                                                <p><?php echo $this->getDescription(); ?></p>
-                                               <?php if ($this->getCode()) { ?><p>You get more information about the problem in the official WoltLab knowledge base: <a href="http://www.woltlab.com/help/?code=<?php echo intval($this->getCode()); ?>">http://www.woltlab.com/help/?code=<?php echo intval($this->getCode()); ?></a></p><?php } ?>
-
+                                               
                                                <h2>Information:</h2>
                                                <p>
                                                        <b>error message:</b> <?php echo StringUtil::encodeHTML($this->getMessage()); ?><br>
index d78c4107ed88af8b46a88b1353954fbc67ef8245..be432616eda89250232b6031190a843bc93aa304 100644 (file)
@@ -29,7 +29,7 @@ class FTP {
        public function __construct($host = 'localhost', $port = 21, $timeout = 30) {
                $this->resource = ftp_connect($host, $port, $timeout);
                if ($this->resource === false) {
-                       throw new SystemException('Can not connect to ' . $host, 11008);
+                       throw new SystemException('Can not connect to ' . $host);
                }
        }
 
@@ -42,7 +42,7 @@ class FTP {
        public function __call($function, $arguments) {
                array_unshift($arguments, $this->resource);
                if (!function_exists('ftp_'.$function)) {
-                       throw new SystemException('Can not call method ' . $function, 11003);
+                       throw new SystemException('Can not call method ' . $function);
                }
                
                return call_user_func_array('ftp_' . $function, $arguments);
index 988dc3880721881d3c8b6152e705a9ccbafb5db8..008a2b90dc89041eb112b4d4b1f58719650f044d 100644 (file)
@@ -53,7 +53,7 @@ class File {
                        $this->resource = fopen($filename, $mode);
                }
                if ($this->resource === false) {
-                       throw new SystemException('Can not open file ' . $filename, 11012);
+                       throw new SystemException('Can not open file ' . $filename);
                }
        }
        
@@ -74,7 +74,7 @@ class File {
                        return call_user_func_array($function, $arguments);
                }
                else {
-                       throw new SystemException('Can not call file method ' . $function, 11003);
+                       throw new SystemException('Can not call file method ' . $function);
                }
        }
 }
index 3856c285c10ac2a85d0b0fe06d177bbec0b3673f..b4ee7e5a790ccaeb1e0905fea9c58af00bf36df9 100644 (file)
@@ -23,7 +23,7 @@ class GZipFile extends File {
                $this->filename = $filename;
                $this->resource = gzopen($filename, $mode);
                if ($this->resource === false) {
-                       throw new SystemException('Can not open file ' . $filename, 11012);
+                       throw new SystemException('Can not open file ' . $filename);
                }
        }
        
@@ -43,7 +43,7 @@ class GZipFile extends File {
                        return call_user_func_array($function, $arguments);
                }
                else {
-                       throw new SystemException('Can not call method ' . $function, 11003);
+                       throw new SystemException('Can not call method ' . $function);
                }
        }
        
index 56ec39f280955d55df2f7e5b936f2ebb2f394ad2..2c141b3b359ea96801d84bd456b756592061dc04 100644 (file)
@@ -56,7 +56,7 @@ class RemoteFile extends File {
                        $this->resource = fsockopen($host, $port, $this->errorNumber, $this->errorDesc, $timeout);
                }
                if ($this->resource === false) {
-                       throw new SystemException('Can not connect to ' . $host, 14000);
+                       throw new SystemException('Can not connect to ' . $host);
                }
        }
        
index d1611a780434cbc57463815aae90a0db8198109e..522a9eb2018e83b5408e8b9545e38628ad9e0137 100644 (file)
@@ -73,7 +73,7 @@ class Tar {
        public function __construct($archiveName) {
                $match = array();
                if (!is_file($archiveName)) {
-                       throw new SystemException("unable to find tar archive '".$archiveName."'", 11002);
+                       throw new SystemException("unable to find tar archive '".$archiveName."'");
                }
                
                $this->archiveName = $archiveName;
@@ -146,7 +146,7 @@ class Tar {
                }
                
                if (!isset($this->contentList[$fileIndex])) {
-                       throw new SystemException("Tar: could find file '".$fileIndex."' in archive", 11013);
+                       throw new SystemException("Tar: could find file '".$fileIndex."' in archive");
                }
                return $this->contentList[$fileIndex];
        }
@@ -254,7 +254,7 @@ class Tar {
                
                // check filesize
                if (filesize($destination) != $header['size']) {
-                       throw new SystemException("Could not untar file '".$header['filename']."' to '".$destination."'. Maybe disk quota exceeded in folder '".dirname($destination)."'.", 11015);
+                       throw new SystemException("Could not untar file '".$header['filename']."' to '".$destination."'. Maybe disk quota exceeded in folder '".dirname($destination)."'.");
                }
                
                return true;
index 89f1b95dff26605aa8660a9a5a18ceadb8860173..d435aff9fdcb35757e38910986d47012036ca0d8 100644 (file)
@@ -85,7 +85,7 @@ class LanguageServerProcessor extends SingletonFactory {
                
                $remoteFile = new RemoteFile(($parsedURL['scheme'] == 'https' ? 'ssl://' : '').$host, $port, 30, $options); // the file to read.
                if (!isset($remoteFile)) {
-                       throw new SystemException("cannot connect to http host '".$host."'", 14000);
+                       throw new SystemException("cannot connect to http host '".$host."'");
                }
                
                // build and send the http request
index 0be21ab013463e2f76c5878413a32c04998a44f0..c8a0b84e0513e313b3ff5286b0290cf595dba027 100644 (file)
@@ -41,7 +41,7 @@ class SMTPMailSender extends MailSender {
                $this->connection = new RemoteFile(MAIL_SMTP_HOST, MAIL_SMTP_PORT);
                $this->getSMTPStatus();
                if ($this->statusCode != 220) {
-                       throw new SystemException($this->formatError("can not connect to '".MAIL_SMTP_HOST.":".MAIL_SMTP_PORT."'"), 17000);
+                       throw new SystemException($this->formatError("can not connect to '".MAIL_SMTP_HOST.":".MAIL_SMTP_PORT."'"));
                }
                
                // send ehlo
@@ -58,7 +58,7 @@ class SMTPMailSender extends MailSender {
                        $this->write('HELO '.$_SERVER['HTTP_HOST']);
                        $this->getSMTPStatus();
                        if ($this->statusCode != 250) {
-                               throw new SystemException($this->formatError("can not connect to '".MAIL_SMTP_HOST.":".MAIL_SMTP_PORT."'"), 17000);
+                               throw new SystemException($this->formatError("can not connect to '".MAIL_SMTP_HOST.":".MAIL_SMTP_PORT."'"));
                        }
                }
        }
@@ -83,20 +83,20 @@ class SMTPMailSender extends MailSender {
                
                // checks if auth is supported
                if ($this->statusCode != 334) {
-                       throw new SystemException($this->formatError("smtp mail server '".MAIL_SMTP_HOST.":".MAIL_SMTP_PORT."' does not support user authentication"), 17001);
+                       throw new SystemException($this->formatError("smtp mail server '".MAIL_SMTP_HOST.":".MAIL_SMTP_PORT."' does not support user authentication"));
                }
                
                // sending user information to smtp-server
                $this->write(base64_encode(MAIL_SMTP_USER));
                $this->getSMTPStatus();
                if ($this->statusCode != 334) {
-                       throw new SystemException($this->formatError("unknown smtp user '".MAIL_SMTP_USER."'"), 17002);
+                       throw new SystemException($this->formatError("unknown smtp user '".MAIL_SMTP_USER."'"));
                }
                        
                $this->write(base64_encode(MAIL_SMTP_PASSWORD));
                $this->getSMTPStatus();
                if ($this->statusCode != 235) {
-                       throw new SystemException($this->formatError("invalid password for smtp user '".MAIL_SMTP_USER."'"), 17003);
+                       throw new SystemException($this->formatError("invalid password for smtp user '".MAIL_SMTP_USER."'"));
                }
        }
        
@@ -118,7 +118,7 @@ class SMTPMailSender extends MailSender {
                $this->write('MAIL FROM:<'.$mail->getFrom().'>');
                $this->getSMTPStatus();
                if ($this->statusCode != 250) {
-                       throw new SystemException($this->formatError("wrong from format '".$mail->getFrom()."'"), 17004);
+                       throw new SystemException($this->formatError("wrong from format '".$mail->getFrom()."'"));
                }
                
                // recipients
@@ -128,7 +128,7 @@ class SMTPMailSender extends MailSender {
                        $this->getSMTPStatus();
                        if ($this->statusCode != 250 && $this->statusCode != 251) {
                                if ($this->statusCode < 550) {
-                                       throw new SystemException($this->formatError("wrong recipient format '".$recipient."'"), 17004);
+                                       throw new SystemException($this->formatError("wrong recipient format '".$recipient."'"));
                                }
                                continue;
                        }
@@ -143,7 +143,7 @@ class SMTPMailSender extends MailSender {
                $this->write("DATA");
                $this->getSMTPStatus();
                if ($this->statusCode != 354 && $this->statusCode != 250) {
-                       throw new SystemException($this->formatError("smtp error"), 17005);
+                       throw new SystemException($this->formatError("smtp error"));
                }
                                                
                $header =
@@ -160,7 +160,7 @@ class SMTPMailSender extends MailSender {
                        
                $this->getSMTPStatus();
                if ($this->statusCode != 250) {
-                       throw new SystemException($this->formatError("message sending failed"), 17005);
+                       throw new SystemException($this->formatError("message sending failed"));
                }
        }
        
index 0a44c7c32c68d6ccba2cf42bea1f10da418b1edf..e74dc846979dbc0ec532c99ba03e0bbf648e3908 100644 (file)
@@ -56,7 +56,7 @@ class ACPTemplatesFileHandler extends PackageInstallationFileHandler {
                                        foreach ($fileNames as $key => $file) {
                                                if (isset($lockedFiles[$file]) && $packageID != $lockedFiles[$file]) {
                                                        $owningPackage = new Package($lockedFiles[$file]);
-                                                       throw new SystemException("A non-standalone package can't overwrite template files. Only an update from the package which owns the template can do that. (Package '".$this->packageInstallation->getPackage()->getPackage()."' tries to overwrite template '".$file."', which is owned by package '".$owningPackage->package."')", 13026);
+                                                       throw new SystemException("A non-standalone package can't overwrite template files. Only an update from the package which owns the template can do that. (Package '".$this->packageInstallation->getPackage()->getPackage()."' tries to overwrite template '".$file."', which is owned by package '".$owningPackage->package."')");
                                                }
                                        }
                                }
index 8ed0d7ff0a366e6f73de57e2540c29885af7afa1..e8eaf388aa70b366ea8fe9b0487e8d7e0737c3f4 100644 (file)
@@ -136,7 +136,7 @@ class PackageArchive {
        public function openArchive() {
                // check whether archive exists and is a TAR archive
                if (!file_exists($this->archive)) {
-                       throw new SystemException("unable to find package file '".$this->archive."'", 11002);
+                       throw new SystemException("unable to find package file '".$this->archive."'");
                }
 
                // open archive and read package information
@@ -151,7 +151,7 @@ class PackageArchive {
                // search package.xml in package archive
                // throw error message if not found
                if ($this->tar->getIndexByFilename(self::INFO_FILE) === false) {
-                       throw new SystemException("package information file '".(self::INFO_FILE)."' not found in '".$this->archive."'", 13000);
+                       throw new SystemException("package information file '".(self::INFO_FILE)."' not found in '".$this->archive."'");
                }
                
                // extract package.xml, parse with SimpleXML
@@ -172,7 +172,7 @@ class PackageArchive {
                $packageName = $package->getAttribute('name');
                if (!Package::isValidPackageName($packageName)) {
                        // package name is not a valid package identifier
-                       throw new SystemException("'".$packageName."' is not a valid package name.", 13002);
+                       throw new SystemException("'".$packageName."' is not a valid package name.");
                }
                
                $this->packageInfo['name'] = $packageName;
@@ -207,7 +207,7 @@ class PackageArchive {
                                
                                case 'plugin':
                                        if ($element->nodeValue && !Package::isValidPackageName($element->nodeValue)) {
-                                               throw new SystemException("'".$element->nodeValue."' is not a valid package name.", 13002);
+                                               throw new SystemException("'".$element->nodeValue."' is not a valid package name.");
                                        }
                                        
                                        $this->packageInfo['plugin'] = $element->nodeValue;
@@ -248,7 +248,7 @@ class PackageArchive {
                $elements = $xpath->query('child::ns:requiredpackages/ns:requiredpackage', $package);
                foreach ($elements as $element) {
                        if (!Package::isValidPackageName($element->nodeValue)) {
-                               throw new SystemException("'".$element->nodeValue."' is not a valid package name.", 13002);
+                               throw new SystemException("'".$element->nodeValue."' is not a valid package name.");
                        }
                        
                        // read attributes
@@ -265,7 +265,7 @@ class PackageArchive {
                $elements = $xpath->query('child::ns:optionalpackages/ns:optionalpackage', $package);
                foreach ($elements as $element) {
                        if (!Package::isValidPackageName($element->nodeValue)) {
-                               throw new SystemException("'".$element->nodeValue."' is not a valid package name.", 13002);
+                               throw new SystemException("'".$element->nodeValue."' is not a valid package name.");
                        }
                        
                        // read attributes
@@ -282,7 +282,7 @@ class PackageArchive {
                $elements = $xpath->query('child::ns:excludedpackages/ns:excludedpackage', $package);
                foreach ($elements as $element) {
                        if (!Package::isValidPackageName($element->nodeValue)) {
-                               throw new SystemException("'".$element->nodeValue."' is not a valid package name.", 13002);
+                               throw new SystemException("'".$element->nodeValue."' is not a valid package name.");
                        }
                        
                        // read attributes
@@ -766,7 +766,7 @@ class PackageArchive {
                // search the requested tar archive in our package archive.
                // throw error message if not found.
                if (($fileIndex = $this->tar->getIndexByFilename($filename)) === false) {
-                       throw new SystemException("tar archive '".$filename."' not found in '".$this->archive."'.", 13007);
+                       throw new SystemException("tar archive '".$filename."' not found in '".$this->archive."'.");
                }
                
                // requested tar archive was found
index d7e7cc098387ac73c2d9927ecb741e190fd1679c..bd74c77b8b40c08c68979de3c957bd2373489b22 100644 (file)
@@ -264,7 +264,7 @@ class PackageInstallationDispatcher {
                ));
                $row = $statement->fetchArray();
                if (!$row || empty($row['requirement'])) {
-                       throw new SystemException("can not find any available installations of required parent package '".$this->getArchive()->getPackageInfo('plugin')."'", 13012);
+                       throw new SystemException("can not find any available installations of required parent package '".$this->getArchive()->getPackageInfo('plugin')."'");
                }
                
                // save parent package
@@ -311,13 +311,13 @@ class PackageInstallationDispatcher {
                // valdidate class definition
                $className = $row['className'];
                if (!class_exists($className)) {
-                       throw new SystemException("unable to find class '".$className."'", 11001);
+                       throw new SystemException("unable to find class '".$className."'");
                }
                
                $plugin = new $className($this, $nodeData);
                
                if (!($plugin instanceof \wcf\system\package\plugin\IPackageInstallationPlugin)) {
-                       throw new SystemException("class '".$className."' does not implement the interface 'wcf\system\package\plugin\IPackageInstallationPlugin'", 11010);
+                       throw new SystemException("class '".$className."' does not implement the interface 'wcf\system\package\plugin\IPackageInstallationPlugin'");
                }
                
                // execute PIP
index 8a25526ef574735ebabf2d6026b92d944c054f81..ff694f913b4d1b9c35236550bf08a5bd0fc802ae 100644 (file)
@@ -283,7 +283,7 @@ class PackageInstallationSQLParser extends SQLParser {
                        if (in_array($tableName, $this->existingTables)) {
                                if (isset($this->knownTables[$tableName])) {
                                        if ($this->knownTables[$tableName] != $this->package->packageID) {
-                                               throw new SystemException("Can not recreate table '.$tableName.'. A package can only overwrite own tables.", 13019);
+                                               throw new SystemException("Can not recreate table '.$tableName.'. A package can only overwrite own tables.");
                                        }
                                }
                                else {
@@ -308,7 +308,7 @@ class PackageInstallationSQLParser extends SQLParser {
                if ($this->test) {
                        if (isset($this->knownTables[$tableName])) {
                                if ($this->knownTables[$tableName] != $this->package->packageID && !in_array($this->knownTables[$tableName], $this->dependentPackageIDs)) {
-                                       throw new SystemException("Can not add column '".$columnName."' to table '.$tableName.'. An installion can only 'ADD' things to tables from the same package environment.", 13019);
+                                       throw new SystemException("Can not add column '".$columnName."' to table '.$tableName.'. An installion can only 'ADD' things to tables from the same package environment.");
                                }
                        }
                }
@@ -328,7 +328,7 @@ class PackageInstallationSQLParser extends SQLParser {
                if ($this->test) {
                        if ($ownerPackageID = $this->getColumnOwnerID($tableName, $oldColumnName)) {
                                if ($ownerPackageID != $this->package->packageID) {
-                                       throw new SystemException("Can not alter column '.$oldColumnName.'. A package can only change own columns.", 13019);
+                                       throw new SystemException("Can not alter column '.$oldColumnName.'. A package can only change own columns.");
                                }
                        }
                }
@@ -351,7 +351,7 @@ class PackageInstallationSQLParser extends SQLParser {
                if ($this->test) {
                        if (isset($this->knownTables[$tableName])) {
                                if ($this->knownTables[$tableName] != $this->package->packageID && !in_array($this->knownTables[$tableName], $this->dependentPackageIDs)) {
-                                       throw new SystemException("Can not add index '".$indexName."' to table '.$tableName.'. An installion can only 'ADD' things to tables from the same package environment.", 13019);
+                                       throw new SystemException("Can not add index '".$indexName."' to table '.$tableName.'. An installion can only 'ADD' things to tables from the same package environment.");
                                }
                        }
                }
@@ -371,7 +371,7 @@ class PackageInstallationSQLParser extends SQLParser {
                if ($this->test) {
                        if (isset($this->knownTables[$tableName])) {
                                if ($this->knownTables[$tableName] != $this->package->packageID && !in_array($this->knownTables[$tableName], $this->dependentPackageIDs)) {
-                                       throw new SystemException("Can not add foreign key '".$indexName."' to table '.$tableName.'. An installion can only 'ADD' things to tables from the same package environment.", 13019);
+                                       throw new SystemException("Can not add foreign key '".$indexName."' to table '.$tableName.'. An installion can only 'ADD' things to tables from the same package environment.");
                                }
                        }
                }
@@ -391,7 +391,7 @@ class PackageInstallationSQLParser extends SQLParser {
                if ($this->test) {
                        if ($ownerPackageID = $this->getColumnOwnerID($tableName, $columnName)) {
                                if ($ownerPackageID != $this->package->packageID) {
-                                       throw new SystemException("Can not drop column '.$columnName.'. A package can only drop own columns.", 13019);
+                                       throw new SystemException("Can not drop column '.$columnName.'. A package can only drop own columns.");
                                }
                        }
                }
@@ -411,7 +411,7 @@ class PackageInstallationSQLParser extends SQLParser {
                if ($this->test) {
                        if ($ownerPackageID = $this->getIndexOwnerID($tableName, $columnName)) {
                                if ($ownerPackageID != $this->package->packageID) {
-                                       throw new SystemException("Can not drop index '.$indexName.'. A package can only drop own indices.", 13019);
+                                       throw new SystemException("Can not drop index '.$indexName.'. A package can only drop own indices.");
                                }
                        }
                }
@@ -432,7 +432,7 @@ class PackageInstallationSQLParser extends SQLParser {
                        if (in_array($tableName, $this->existingTables)) {
                                if (isset($this->knownTables[$tableName])) {
                                        if ($this->knownTables[$tableName] != $this->package->packageID) {
-                                               throw new SystemException("Can not drop table '.$tableName.'. A package can only drop own tables.", 13019);
+                                               throw new SystemException("Can not drop table '.$tableName.'. A package can only drop own tables.");
                                        }
                                }
                                else {
index e1cd729f0811892e0fa0843f63204bdb1d66d4b5..7634aad80d62a839093d5aa1dac47ebdceafdd51 100644 (file)
@@ -241,7 +241,7 @@ class PackageInstallationScheduler {
                                }
                                
                                if ($response['httpStatusCode'] != 200) {
-                                       throw new SystemException(WCF::getLanguage()->get('wcf.acp.packageUpdate.error.downloadFailed', array('$package' => $package)) . ' ('.$response['httpStatusLine'].')', 18009);
+                                       throw new SystemException(WCF::getLanguage()->get('wcf.acp.packageUpdate.error.downloadFailed', array('$package' => $package)) . ' ('.$response['httpStatusLine'].')');
                                }
                                
                                // write content to tmp file
index 4a065bdfe54548eb8aeeae08cfd0038600d200c5..b76916fa597d7237ef6bf5ac3b86b9be61817389 100644 (file)
@@ -68,7 +68,7 @@ abstract class PackageUpdateDispatcher {
                }
                
                if ($response['httpStatusCode'] != 200) {
-                       throw new SystemException(WCF::getLanguage()->get('wcf.acp.packageUpdate.error.listNotFound') . ' ('.$response['httpStatusLine'].')', 18009);
+                       throw new SystemException(WCF::getLanguage()->get('wcf.acp.packageUpdate.error.listNotFound') . ' ('.$response['httpStatusLine'].')');
                }
                
                // parse given package update xml
@@ -220,7 +220,7 @@ abstract class PackageUpdateDispatcher {
                $packages = $xpath->query('/ns:section[@name=\'packages\']/ns:package');
                foreach ($packages as $package) {
                        if (!Package::isValidPackageName($package->getAttribute('name'))) {
-                               throw new SystemException("'".$package->getAttribute('name')."' is not a valid package name.", 18004);
+                               throw new SystemException("'".$package->getAttribute('name')."' is not a valid package name.");
                        }
                        
                        $allNewPackages[$package->getAttribute('name')] = self::parsePackageUpdateXMLBlock($xpath, $package);
@@ -714,7 +714,7 @@ abstract class PackageUpdateDispatcher {
                }
                
                if (!count($versions)) {
-                       throw new SystemException("Can not find package '".$package."' in version '".$version."'", 18101);
+                       throw new SystemException("Can not find package '".$package."' in version '".$version."'");
                }
                
                return $versions;
index 978e144b1272683041ef181fab4f157f906fe0b9..967afab2874d8de4b82e37aaa9b1ff1349cc77b6 100644 (file)
@@ -66,7 +66,7 @@ abstract class AbstractMenuPackageInstallationPlugin extends AbstractXMLPackageI
                $row = $statement->fetchArray();
                
                if (!$row['count']) {
-                       throw new SystemException("Unable to find parent 'menu item' with name '".$data['parentMenuItem']."' for 'menu item' with name '".$data['menuItem']."'.", 13011);
+                       throw new SystemException("Unable to find parent 'menu item' with name '".$data['parentMenuItem']."' for 'menu item' with name '".$data['menuItem']."'.");
                }
        }
        
index c72581ec3d6fd043210502a034b3043db283b435..40545811f18bce16b34d681e84adc8f32a200839 100644 (file)
@@ -132,7 +132,7 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag
                                $row = $statement->fetchArray();
                                
                                if (!$row['count']) {
-                                       throw new SystemException("Unable to find parent 'option category' with name '".$data['parentCategoryName']."' for category with name '".$data['categoryName']."'.", 13011);
+                                       throw new SystemException("Unable to find parent 'option category' with name '".$data['parentCategoryName']."' for category with name '".$data['categoryName']."'.");
                                }
                        }
                        
@@ -160,7 +160,7 @@ abstract class AbstractOptionPackageInstallationPlugin extends AbstractXMLPackag
                        if (!preg_match("/^[\w-\.]+$/", $data['name'])) {
                                $matches = array();
                                preg_match_all("/(\W)/", $data['name'], $matches);
-                               throw new SystemException("The user option '".$data['name']."' has at least one non-alphanumeric character (underscore is permitted): (".implode("), ( ", $matches[1]).").", 13024); 
+                               throw new SystemException("The user option '".$data['name']."' has at least one non-alphanumeric character (underscore is permitted): (".implode("), ( ", $matches[1]).")."); 
                        }
                        
                        $this->saveOption($data, $data['categoryname']);
index 0b8898c00693d8dbc283ad88a7016a58c8832fd1..6b1a445ad2f0035837dea172eb4a9da494a55b19 100644 (file)
@@ -230,7 +230,7 @@ abstract class AbstractXMLPackageInstallationPlugin extends AbstractPackageInsta
                // Search the xml-file in the package archive.
                // Abort installation in case no file was found.
                if (($fileIndex = $this->installation->getArchive()->getTar()->getIndexByFilename($filename)) === false) {
-                       throw new SystemException("xml file '".$filename."' not found in '".$this->installation->getArchive()->getArchive()."'", 13008);
+                       throw new SystemException("xml file '".$filename."' not found in '".$this->installation->getArchive()->getArchive()."'");
                }
 
                // Extract acpmenu file and parse with SimpleXML
index eac4886e92ec8f8f37cd3f5f03cab974a1a85dd9..1b5556d0fdd505a734cfc5132562a941da1f4fcf 100644 (file)
@@ -64,7 +64,7 @@ class GroupOptionsPackageInstallationPlugin extends AbstractOptionPackageInstall
                // check if optionType exists
                $className = 'wcf\system\option\group\GroupOptionType'.ucfirst($optionType);
                if (!class_exists($className)) {
-                       throw new SystemException("unable to find class '".$className."'", 11001);
+                       throw new SystemException("unable to find class '".$className."'");
                }
                
                // collect additional tags and their values
index bf72c33aab8449847ab6544ea18e74b194fdc5f3..c7fa6b2d866a199625c970ff60ca05fb65410ac3 100644 (file)
@@ -235,7 +235,7 @@ class LanguagesPackageInstallationPlugin extends AbstractXMLPackageInstallationP
                // search language files in package archive
                // throw error message if not found
                if (($fileIndex = $this->installation->getArchive()->getTar()->getIndexByFilename($filename)) === false) {
-                       throw new SystemException("language file '".$filename."' not found.", 13025);
+                       throw new SystemException("language file '".$filename."' not found.");
                }
                
                // extract language file and parse with DOMDocument
index b7d59b6b156bbdcecce9dbe8019808e42dd9d124..1bb184d6f0588c46064702c320821f3933932250 100644 (file)
@@ -47,7 +47,7 @@ class OptionsPackageInstallationPlugin extends AbstractOptionPackageInstallation
                // check if optionType exists
                $className = 'wcf\system\option\OptionType'.ucfirst($optionType);
                if (!class_exists($className)) {
-                       throw new SystemException("unable to find class '".$className."'", 11001);
+                       throw new SystemException("unable to find class '".$className."'");
                }
                
                // collect additional tags and their values
index 95f34223a456ece0a502534ea1ffaaabb9a8de6e..c64cb77471463ad829c875b5b3dc43eb4a339355 100644 (file)
@@ -140,7 +140,7 @@ class SQLPackageInstallationPlugin extends AbstractPackageInstallationPlugin {
        protected function getSQL($filename) {
                // search sql files in package archive
                if (($fileindex = $this->installation->getArchive()->getTar()->getIndexByFilename($filename)) === false) {
-                       throw new SystemException("SQL file '".$filename."' not found.", 13016);
+                       throw new SystemException("SQL file '".$filename."' not found.");
                }
 
                // extract sql file to string
index 8ef97e1ff1faa8e94dab68ffac3cd67c3251e5a7..dc4cada02542beb56c620e5cf7f09f39c04217e7 100644 (file)
@@ -93,7 +93,7 @@ class UserOptionsPackageInstallationPlugin extends AbstractOptionPackageInstalla
                // check if optionType exists
                $className = 'wcf\system\option\OptionType'.ucfirst($optionType);
                if (!class_exists($className)) {
-                       throw new SystemException("unable to find class '".$className."'", 11001);
+                       throw new SystemException("unable to find class '".$className."'");
                }
                
                // collect additional tags and their values
index 8d70f646eea28f2cbdce644f6d43696035757172..1f878132a975c10081a62816cbae70ce6c252f8e 100644 (file)
@@ -62,7 +62,7 @@ class RequestHandler extends SingletonFactory {
                try {
                        // validate class name
                        if (!preg_match('~^[a-z0-9_]+$~i', $pageName)) {
-                               throw new SystemException("Illegal class name '".$pageName."'", 11009);
+                               throw new SystemException("Illegal class name '".$pageName."'");
                        }
                        
                        // find class
@@ -71,7 +71,7 @@ class RequestHandler extends SingletonFactory {
                                $className = 'wcf\\'.($isACP ? 'acp\\' : '').$pageType.'\\'.ucfirst($pageName).ucfirst($pageType);
                        }
                        if (!class_exists($className)) {
-                               throw new SystemException("unable to find class '".$className."'", 11000);
+                               throw new SystemException("unable to find class '".$className."'");
                        }
                        
                        // check whether the class is abstract
index 4303dc9a414b6e0c7b29b4474fee59ab46756586..208eacc5d62508aea7191e42d8e1838f489959b5 100644 (file)
@@ -40,7 +40,7 @@ class Installer {
        protected function createTargetDir() {
                if (!@is_dir($this->targetDir)) {
                        if (!FileUtil::makePath($this->targetDir, (FileUtil::isApacheModule() ? 0777 : 0755))) {
-                               throw new SystemException("Could not create dir '".$this->targetDir."'", 11011);
+                               throw new SystemException("Could not create dir '".$this->targetDir."'");
                        }
                }
                if (FileUtil::isApacheModule() || !is_writeable($this->targetDir)) {
@@ -57,7 +57,7 @@ class Installer {
                if (!@is_dir($this->targetDir.$dir)) {
                        $oldumask = umask(0);
                        if (!@mkdir($this->targetDir.$dir, 0755, true)) {
-                               throw new SystemException("Could not create dir '".$this->targetDir.$dir."'", 11011);
+                               throw new SystemException("Could not create dir '".$this->targetDir.$dir."'");
                        }
                        umask($oldumask);
                }
@@ -143,7 +143,7 @@ class Installer {
                        }
                }
                if (count($errors) > 0) {
-                       throw new SystemException('error(s) during the installation of the files.', 11111, $errors);
+                       throw new SystemException('error(s) during the installation of the files.', $errors);
                }
                
                $this->logFiles($files);
@@ -182,7 +182,7 @@ class Installer {
        protected function makeWriteable($target) {
                if (!preg_match('/^WIN/i', PHP_OS)) {
                        if (!@chmod($target, 0777)) {
-                               //throw new SystemException("Could not chmod file '".$target."'", 11005);
+                               //throw new SystemException("Could not chmod file '".$target."'");
                        }
                }
        }
index e4a9c7e21398f1438c1cd6f860a8ed96ac6719e1..6919e3cf2a50ddf1c788a137649c2997f700a72c 100644 (file)
@@ -91,7 +91,7 @@ class StyleHandler extends SingletonFactory {
                        }
                        
                        if (!isset($this->cache['styles'][$styleID])) {
-                               throw new SystemException('no default style defined', 100000);
+                               throw new SystemException('no default style defined');
                        }
                }
 
index ecc0987fface584bace06a152fe003f985c1207f..f34d2582c47c3efa412d56a6d2b7bf186bfbd97a 100644 (file)
@@ -41,7 +41,7 @@ class SetupTemplateEngine extends TemplateEngine {
                        return PACKAGE_ID;
                }
                
-               throw new SystemException("Unable to find template '$templateName'", 12005);
+               throw new SystemException("Unable to find template '$templateName'");
        }
        
        /**
index 1c22bfaf59f45d4887426cf0b89bfdeb0f68a785..bf5ed4c674ba3b1243f4701aaad010b5ec7d907e 100644 (file)
@@ -352,7 +352,7 @@ class TemplateEngine extends SingletonFactory {
                }
                
                
-               throw new SystemException("Unable to find template '$templateName'", 12005);
+               throw new SystemException("Unable to find template '$templateName'");
        }
        
        /**
@@ -480,7 +480,7 @@ class TemplateEngine extends SingletonFactory {
        public function getSourceContent($sourceFilename) {
                $sourceContent = '';
                if (!file_exists($sourceFilename) || (($sourceContent = @file_get_contents($sourceFilename)) === false)) {
-                       throw new SystemException("Could not open template '$sourceFilename' for reading", 12005);
+                       throw new SystemException("Could not open template '$sourceFilename' for reading");
                }
                else {
                        return $sourceContent;
@@ -659,7 +659,7 @@ class TemplateEngine extends SingletonFactory {
         */
        public function setCompileDir($compileDir) {
                if (!is_dir($compileDir)) {
-                       throw new SystemException("'".$compileDir."' is not a valid dir", 11014);
+                       throw new SystemException("'".$compileDir."' is not a valid dir");
                }
                
                $this->compileDir = $compileDir;
index d5cb921b0509045528ee4451aab1a54ffac660e6..fa6b4949b8c8108f6ce562ecd138e00fd34e6e62 100644 (file)
@@ -112,7 +112,7 @@ class TemplateScriptingCompiler {
                // throw error messages for unclosed tags
                if (count($this->tagStack) > 0) {
                        foreach ($this->tagStack as $tagStack) {
-                               throw new SystemException($this->formatSyntaxError('unclosed tag {'.$tagStack[0].'}', $this->currentIdentifier, $tagStack[1]), 12002);
+                               throw new SystemException($this->formatSyntaxError('unclosed tag {'.$tagStack[0].'}', $this->currentIdentifier, $tagStack[1]));
                        }
                        return false;
                }
@@ -282,7 +282,7 @@ class TemplateScriptingCompiler {
                        }
                }
                
-               throw new SystemException($this->formatSyntaxError('unknown tag {'.$tag.'}', $this->currentIdentifier, $this->currentLineNo), 12003);
+               throw new SystemException($this->formatSyntaxError('unknown tag {'.$tag.'}', $this->currentIdentifier, $this->currentLineNo));
        }
        
        /**
@@ -381,7 +381,7 @@ class TemplateScriptingCompiler {
                        $this->compilerPlugins[$className] = new $className();
                        
                        if (!($this->compilerPlugins[$className] instanceof ITemplatePluginCompiler)) {
-                               throw new SystemException($this->formatSyntaxError("Compiler plugin '".$tagCommand."' does not implement the interface 'ITemplatePluginCompiler'", $this->currentIdentifier), 11010);
+                               throw new SystemException($this->formatSyntaxError("Compiler plugin '".$tagCommand."' does not implement the interface 'ITemplatePluginCompiler'", $this->currentIdentifier));
                        }
                }
                
@@ -447,10 +447,10 @@ class TemplateScriptingCompiler {
 
                // check arguments
                if (!isset($args['loop'])) {
-                       throw new SystemException($this->formatSyntaxError("missing 'loop' attribute in section tag", $this->currentIdentifier, $this->currentLineNo), 12001);
+                       throw new SystemException($this->formatSyntaxError("missing 'loop' attribute in section tag", $this->currentIdentifier, $this->currentLineNo));
                }
                if (!isset($args['name'])) {
-                       throw new SystemException($this->formatSyntaxError("missing 'name' attribute in section tag", $this->currentIdentifier, $this->currentLineNo), 12001);
+                       throw new SystemException($this->formatSyntaxError("missing 'name' attribute in section tag", $this->currentIdentifier, $this->currentLineNo));
                }
                if (!isset($args['show'])) {
                        $args['show'] = true;
@@ -521,10 +521,10 @@ class TemplateScriptingCompiler {
 
                // check arguments
                if (!isset($args['from'])) {
-                       throw new SystemException($this->formatSyntaxError("missing 'from' attribute in foreach tag", $this->currentIdentifier, $this->currentLineNo), 12001);
+                       throw new SystemException($this->formatSyntaxError("missing 'from' attribute in foreach tag", $this->currentIdentifier, $this->currentLineNo));
                }
                if (!isset($args['item'])) {
-                       throw new SystemException($this->formatSyntaxError("missing 'item' attribute in foreach tag", $this->currentIdentifier, $this->currentLineNo), 12001);
+                       throw new SystemException($this->formatSyntaxError("missing 'item' attribute in foreach tag", $this->currentIdentifier, $this->currentLineNo));
                }
 
                $foreachProp = '';
@@ -569,7 +569,7 @@ class TemplateScriptingCompiler {
                
                // check arguments
                if (!isset($args['file'])) {
-                       throw new SystemException($this->formatSyntaxError("missing 'file' attribute in include tag", $this->currentIdentifier, $this->currentLineNo), 12001);
+                       throw new SystemException($this->formatSyntaxError("missing 'file' attribute in include tag", $this->currentIdentifier, $this->currentLineNo));
                }
 
                // get filename
@@ -642,7 +642,7 @@ class TemplateScriptingCompiler {
                
                // validate tag arguments
                if (!preg_match('~^(?:\s+\w+\s*=\s*[^=]*(?=\s|$))*$~s', $tagArgs)) {
-                       throw new SystemException($this->formatSyntaxError('syntax error in tag {'.$tag.'}', $this->currentIdentifier, $this->currentLineNo), 12000);
+                       throw new SystemException($this->formatSyntaxError('syntax error in tag {'.$tag.'}', $this->currentIdentifier, $this->currentLineNo));
                }
 
                // parse tag arguments
@@ -734,7 +734,7 @@ class TemplateScriptingCompiler {
                        $operator = (isset($operators[$i]) ? $operators[$i] : null);
                        
                        if ($operator !== '!' && $values[$i] == '') {
-                               throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo), 12000);
+                               throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo));
                        }
                        
                        $leftParenthesis = StringUtil::countSubstring($values[$i], '(');
@@ -745,7 +745,7 @@ class TemplateScriptingCompiler {
                                $result .= str_repeat('(', $leftParenthesis - $rightParenthesis);
                                
                                if (str_replace('(', '', StringUtil::substring($values[$i], 0, $leftParenthesis - $rightParenthesis)) != '') {
-                                       throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo), 12000);
+                                       throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo));
                                }
                        }
                        else if ($leftParenthesis < $rightParenthesis) {
@@ -753,7 +753,7 @@ class TemplateScriptingCompiler {
                                $value = StringUtil::substring($values[$i], 0, $leftParenthesis - $rightParenthesis);
                                
                                if ($leftParentheses < 0 || str_replace(')', '', StringUtil::substring($values[$i], $leftParenthesis - $rightParenthesis)) != '') {
-                                       throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo), 12000);
+                                       throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo));
                                }
                        }
                        else $value = $values[$i];
@@ -762,7 +762,7 @@ class TemplateScriptingCompiler {
                                $result .= $this->compileVariableTag($value, false);
                        }
                        catch (SystemException $e) {
-                               throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo), 12000);
+                               throw new SystemException($this->formatSyntaxError('syntax error in tag {'.($elseif ? 'elseif' : 'if').'}', $this->currentIdentifier, $this->currentLineNo));
                        }
                        
                        if ($leftParenthesis < $rightParenthesis) {
@@ -925,7 +925,7 @@ class TemplateScriptingCompiler {
                                                
                                        case 'object access':
                                                if (/*strpos($values[$i], '$') !== false || */strpos($values[$i], '@@') !== false) {
-                                                       throw new SystemException($this->formatSyntaxError("unexpected '->".$values[$i]."' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo), 12003);
+                                                       throw new SystemException($this->formatSyntaxError("unexpected '->".$values[$i]."' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo));
                                                }
                                                if (strpos($values[$i], '$') !== false) $result .= '{'.$this->compileSimpleVariable($values[$i], $variableType).'}';
                                                else $result .= $values[$i];
@@ -973,7 +973,7 @@ class TemplateScriptingCompiler {
                                        
                                        case 'modifier':
                                                if (strpos($values[$i], '$') !== false || strpos($values[$i], '@@') !== false) {
-                                                       throw new SystemException($this->formatSyntaxError("unknown modifier '".$values[$i]."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                                       throw new SystemException($this->formatSyntaxError("unknown modifier '".$values[$i]."'", $this->currentIdentifier, $this->currentLineNo));
                                                }
                                                
                                                // handle modifier name
@@ -984,7 +984,7 @@ class TemplateScriptingCompiler {
                                                        $this->autoloadPlugins[$modifierData['className']] = $modifierData['className'];        
                                                }
                                                else if ((!function_exists($modifierData['name']) && !in_array($modifierData['name'], $this->unknownPHPFunctions)) || in_array($modifierData['name'], $this->disabledPHPFunctions)) {
-                                                       throw new SystemException($this->formatSyntaxError("unknown modifier '".$values[$i]."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                                       throw new SystemException($this->formatSyntaxError("unknown modifier '".$values[$i]."'", $this->currentIdentifier, $this->currentLineNo));
                                                }
                                                
                                                $statusStack[count($statusStack) - 1] = $status = 'modifier end';
@@ -994,7 +994,7 @@ class TemplateScriptingCompiler {
                                        case 'constant': 
                                        case 'variable':
                                        case 'string': 
-                                               throw new SystemException($this->formatSyntaxError('unknown tag {'.$tag.'}', $this->currentIdentifier, $this->currentLineNo), 12003);
+                                               throw new SystemException($this->formatSyntaxError('unknown tag {'.$tag.'}', $this->currentIdentifier, $this->currentLineNo));
                                                break;
                                }
                        }
@@ -1010,7 +1010,7 @@ class TemplateScriptingCompiler {
                                                        break;
                                                }
                                                
-                                               throw new SystemException($this->formatSyntaxError("unexpected '.' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                               throw new SystemException($this->formatSyntaxError("unexpected '.' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo));
                                                break;
                                        
                                        // object access
@@ -1021,7 +1021,7 @@ class TemplateScriptingCompiler {
                                                        break;
                                                }
                                                
-                                               throw new SystemException($this->formatSyntaxError("unexpected '->' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                               throw new SystemException($this->formatSyntaxError("unexpected '->' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo));
                                                break;
                                        
                                        // left parenthesis
@@ -1039,7 +1039,7 @@ class TemplateScriptingCompiler {
                                                        break;
                                                }
                                                
-                                               throw new SystemException($this->formatSyntaxError("unexpected '(' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                               throw new SystemException($this->formatSyntaxError("unexpected '(' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo));
                                                break;
                                        
                                        // right parenthesis
@@ -1054,7 +1054,7 @@ class TemplateScriptingCompiler {
                                                        }
                                                }
                                                
-                                               throw new SystemException($this->formatSyntaxError("unexpected ')' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                               throw new SystemException($this->formatSyntaxError("unexpected ')' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo));
                                                break;
                                        
                                        // bracket open
@@ -1066,7 +1066,7 @@ class TemplateScriptingCompiler {
                                                        break;
                                                }
                                                
-                                               throw new SystemException($this->formatSyntaxError("unexpected '[' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                               throw new SystemException($this->formatSyntaxError("unexpected '[' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo));
                                                break;
                                        
                                        // bracket close
@@ -1081,7 +1081,7 @@ class TemplateScriptingCompiler {
                                                        }
                                                }
                                                
-                                               throw new SystemException($this->formatSyntaxError("unexpected ']' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                               throw new SystemException($this->formatSyntaxError("unexpected ']' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo));
                                                break;
 
                                        // modifier
@@ -1095,7 +1095,7 @@ class TemplateScriptingCompiler {
                                                // clear status stack
                                                while ($oldStatus = array_pop($statusStack)) {
                                                        if ($oldStatus != 'variable' && $oldStatus != 'object' && $oldStatus != 'constant' && $oldStatus != 'string' && $oldStatus != 'modifier end') {
-                                                               throw new SystemException($this->formatSyntaxError("unexpected '|' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                                               throw new SystemException($this->formatSyntaxError("unexpected '|' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo));
                                                        }
                                                }
                                                
@@ -1118,7 +1118,7 @@ class TemplateScriptingCompiler {
                                                        }
                                                }
                                                
-                                               throw new SystemException($this->formatSyntaxError("unexpected ':' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                               throw new SystemException($this->formatSyntaxError("unexpected ':' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo));
                                                break;
                                                
                                        case ',':
@@ -1134,7 +1134,7 @@ class TemplateScriptingCompiler {
                                                        }
                                                }
                                                
-                                               throw new SystemException($this->formatSyntaxError("unexpected ',' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                               throw new SystemException($this->formatSyntaxError("unexpected ',' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo));
                                                break;
                                        
                                        // math operators       
@@ -1150,7 +1150,7 @@ class TemplateScriptingCompiler {
                                                        break;
                                                }
                                                
-                                               throw new SystemException($this->formatSyntaxError("unexpected '".$operator."' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo), 12004);
+                                               throw new SystemException($this->formatSyntaxError("unexpected '".$operator."' in tag '".$tag."'", $this->currentIdentifier, $this->currentLineNo));
                                                break;
                                }
                        }
@@ -1277,7 +1277,7 @@ class TemplateScriptingCompiler {
                        if (!is_object($prefilter)) {
                                $className = $this->template->getPluginClassName('prefilter', $prefilter);
                                if (!class_exists($className)) {
-                                       throw new SystemException($this->formatSyntaxError('unable to find prefilter class '.$className, $this->currentIdentifier), 11001);
+                                       throw new SystemException($this->formatSyntaxError('unable to find prefilter class '.$className, $this->currentIdentifier));
                                }
                                $prefilter = new $className();
                        }
@@ -1286,7 +1286,7 @@ class TemplateScriptingCompiler {
                                $string = $prefilter->execute($templateName, $string, $this);
                        }
                        else {
-                               throw new SystemException($this->formatSyntaxError("Prefilter '".$prefilter."' does not implement the interface 'ITemplatePluginPrefilter'", $this->currentIdentifier), 11010);
+                               throw new SystemException($this->formatSyntaxError("Prefilter '".$prefilter."' does not implement the interface 'ITemplatePluginPrefilter'", $this->currentIdentifier));
                        }
                }
                
index d0d9342c32a9579de69e650e2409c76805f8fd96..cbb480821a935f621574c40163f8bc057a35fea4 100644 (file)
@@ -23,10 +23,10 @@ class TemplatePluginCompilerAppend implements ITemplatePluginCompiler {
         */
        public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) {
                if (!isset($tagArgs['var'])) {
-                       throw new SystemException($compiler->formatSyntaxError("missing 'var' argument in append tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12001);
+                       throw new SystemException($compiler->formatSyntaxError("missing 'var' argument in append tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
                }
                if (!isset($tagArgs['value'])) {
-                       throw new SystemException($compiler->formatSyntaxError("missing 'value' argument in append tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12001);
+                       throw new SystemException($compiler->formatSyntaxError("missing 'value' argument in append tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
                }
                                
                return "<?php \$this->append(".$tagArgs['var'].", ".$tagArgs['value']."); ?>";
@@ -36,6 +36,6 @@ class TemplatePluginCompilerAppend implements ITemplatePluginCompiler {
         * @see wcf\system\template\ITemplatePluginCompiler::executeEnd()
         */
        public function executeEnd(TemplateScriptingCompiler $compiler) {
-               throw new SystemException($compiler->formatSyntaxError("unknown tag {/append}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12003);
+               throw new SystemException($compiler->formatSyntaxError("unknown tag {/append}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
        }
 }
index f4c05938bf53d31878a577bc2e49be0100a42687..9ae7d4da4090c41f650a4e5f462461dac89d6132 100644 (file)
@@ -23,10 +23,10 @@ class TemplatePluginCompilerAssign implements ITemplatePluginCompiler {
         */
        public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) {
                if (!isset($tagArgs['var'])) {
-                       throw new SystemException($compiler->formatSyntaxError("missing 'var' argument in assign tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12001);
+                       throw new SystemException($compiler->formatSyntaxError("missing 'var' argument in assign tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
                }
                if (!isset($tagArgs['value'])) {
-                       throw new SystemException($compiler->formatSyntaxError("missing 'value' argument in assign tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12001);
+                       throw new SystemException($compiler->formatSyntaxError("missing 'value' argument in assign tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
                }
                                
                return "<?php \$this->assign(".$tagArgs['var'].", ".$tagArgs['value']."); ?>";
@@ -36,6 +36,6 @@ class TemplatePluginCompilerAssign implements ITemplatePluginCompiler {
         * @see wcf\system\template\ITemplatePluginCompiler::executeEnd()
         */
        public function executeEnd(TemplateScriptingCompiler $compiler) {
-               throw new SystemException($compiler->formatSyntaxError("unknown tag {/assign}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12003);
+               throw new SystemException($compiler->formatSyntaxError("unknown tag {/assign}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
        }
 }
index b39837141760d1eaf8a9538f75ffe0eb21e019fc..378b7be0cfa255a2c771fa1b185f3b520641b564 100644 (file)
@@ -24,7 +24,7 @@ class TemplatePluginCompilerFetch implements ITemplatePluginCompiler {
         */
        public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) {
                if (!isset($tagArgs['file'])) {
-                       throw new SystemException($compiler->formatSyntaxError("missing 'file' argument in fetch tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12001);
+                       throw new SystemException($compiler->formatSyntaxError("missing 'file' argument in fetch tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
                }
                
                if (isset($tagArgs['assign'])) {
@@ -39,6 +39,6 @@ class TemplatePluginCompilerFetch implements ITemplatePluginCompiler {
         * @see wcf\system\template\ITemplatePluginCompiler::executeEnd()
         */
        public function executeEnd(TemplateScriptingCompiler $compiler) {
-               throw new SystemException($compiler->formatSyntaxError("unknown tag {/fetch}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12003);
+               throw new SystemException($compiler->formatSyntaxError("unknown tag {/fetch}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
        }
 }
index beaddf72090b6f0cb7ed82e8cfd2776973ad50e1..25bb79a33b1e741e3a6b35a5f08ed8cdb97580bd 100644 (file)
@@ -28,10 +28,10 @@ class TemplatePluginCompilerImplode implements ITemplatePluginCompiler {
                $compiler->pushTag('implode');
                
                if (!isset($tagArgs['from'])) {
-                       throw new SystemException($compiler->formatSyntaxError("missing 'from' argument in implode tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12001);
+                       throw new SystemException($compiler->formatSyntaxError("missing 'from' argument in implode tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
                }
                if (!isset($tagArgs['item'])) {
-                       throw new SystemException($compiler->formatSyntaxError("missing 'item' argument in implode tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12001);
+                       throw new SystemException($compiler->formatSyntaxError("missing 'item' argument in implode tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
                }
                
                $hash = StringUtil::getRandomID();
index 3365c3c98eb6780f3bee081850885fa4073a8f2e..4ac7471a210bd66a472e756715355dd153f11879 100644 (file)
@@ -23,10 +23,10 @@ class TemplatePluginCompilerPrepend implements ITemplatePluginCompiler {
         */
        public function executeStart($tagArgs, TemplateScriptingCompiler $compiler) {
                if (!isset($tagArgs['var'])) {
-                       throw new SystemException($compiler->formatSyntaxError("missing 'var' argument in prepend tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12001);
+                       throw new SystemException($compiler->formatSyntaxError("missing 'var' argument in prepend tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
                }
                if (!isset($tagArgs['value'])) {
-                       throw new SystemException($compiler->formatSyntaxError("missing 'value' argument in prepend tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12001);
+                       throw new SystemException($compiler->formatSyntaxError("missing 'value' argument in prepend tag", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
                }
                                
                return "<?php \$this->prepend(".$tagArgs['var'].", ".$tagArgs['value']."); ?>";
@@ -36,6 +36,6 @@ class TemplatePluginCompilerPrepend implements ITemplatePluginCompiler {
         * @see wcf\system\template\ITemplatePluginCompiler::executeEnd()
         */
        public function executeEnd(TemplateScriptingCompiler $compiler) {
-               throw new SystemException($compiler->formatSyntaxError("unknown tag {/prepend}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()), 12003);
+               throw new SystemException($compiler->formatSyntaxError("unknown tag {/prepend}", $compiler->getCurrentIdentifier(), $compiler->getCurrentLineNo()));
        }
 }
index 54d15818cb1101c5c190aa37af16fc76421050a4..b6e9750fc09cc163afecba89f4c462e0157f6cb8 100644 (file)
@@ -33,7 +33,7 @@ class TemplatePluginFunctionCycle implements ITemplatePluginFunction {
                // get values
                if (!isset($tagArgs['values']) ) {
                        if (!isset($this->cycles[$name]['values'])) {
-                               throw new SystemException("missing 'values' argument in cycle tag", 12001);
+                               throw new SystemException("missing 'values' argument in cycle tag");
                        }
                }
                else {
index 6a56d13af4eefedae592446dc18eff625e289252..f80658a6da786ac6c512e89d62f51ac131114764 100644 (file)
@@ -39,11 +39,11 @@ class TemplatePluginFunctionHtmlcheckboxes implements ITemplatePluginFunction {
                }
 
                if (!isset($tagArgs['options']) || !is_array($tagArgs['options'])) {
-                       throw new SystemException("missing 'options' argument in htmlCheckboxes tag", 12001);
+                       throw new SystemException("missing 'options' argument in htmlCheckboxes tag");
                }
                
                if (!isset($tagArgs['name'])) {
-                       throw new SystemException("missing 'name' argument in htmlCheckboxes tag", 12001);
+                       throw new SystemException("missing 'name' argument in htmlCheckboxes tag");
                }
                
                if (isset($tagArgs['disableEncoding']) && $tagArgs['disableEncoding']) {
index 4f6e3d9e1937d3fab15db71aebaaff5e50cfb985..7fa8c19e9ae54baea98a26c8af91dde1b55b4087 100644 (file)
@@ -48,7 +48,7 @@ class TemplatePluginFunctionHtmloptions extends TemplatePluginFunctionHtmlcheckb
                }
 
                if (!isset($tagArgs['options']) || !is_array($tagArgs['options'])) {
-                       throw new SystemException("missing 'options' argument in htmloptions tag", 12001);
+                       throw new SystemException("missing 'options' argument in htmloptions tag");
                }
                
                if (isset($tagArgs['disableEncoding']) && $tagArgs['disableEncoding']) {
index 9529ebb001bfe20439e1d94989fc80c1713fdeba..86f85c6608cfe5d8b254467d76b7da9fa6001f24 100644 (file)
@@ -67,10 +67,10 @@ class TemplatePluginFunctionPages implements ITemplatePluginFunction {
         */
        public function execute($tagArgs, TemplateEngine $tplObj) {
                // needed params: link, page, pages
-               if (!isset($tagArgs['link'])) throw new SystemException("missing 'link' argument in pages tag", 12001);
+               if (!isset($tagArgs['link'])) throw new SystemException("missing 'link' argument in pages tag");
                if (!isset($tagArgs['pages'])) {
                        if (($tagArgs['pages'] = $tplObj->get('pages')) === null) {
-                               throw new SystemException("missing 'pages' argument in pages tag", 12001);
+                               throw new SystemException("missing 'pages' argument in pages tag");
                        }
                }
                
index ece6850f28c0de15f0b7be21841a2b5e7d80c577..2a6d12dff57290ebd1618b4a6c52d667579b19d4 100644 (file)
@@ -57,10 +57,10 @@ class TemplatePluginFunctionSmallpages implements ITemplatePluginFunction {
         */
        public function execute($tagArgs, TemplateEngine $tplObj) {
                // needed params: link, pages
-               if (!isset($tagArgs['link'])) throw new SystemException("missing 'link' argument in pages tag", 12001);
+               if (!isset($tagArgs['link'])) throw new SystemException("missing 'link' argument in pages tag");
                if (!isset($tagArgs['pages'])) {
                        if (($tagArgs['pages'] = $tplObj->get('pages')) === null) {
-                               throw new SystemException("missing 'pages' argument in pages tag", 12001);
+                               throw new SystemException("missing 'pages' argument in pages tag");
                        }
                }
                
index 80147cf27bcf167d108aa141c239a8525b2c2c3b..f8cd763686d38f9c6dad69486b53f8f5bbb5f859 100644 (file)
@@ -24,7 +24,7 @@ class TemplatePluginModifierConcat implements ITemplatePluginModifier {
         */
        public function execute($tagArgs, TemplateEngine $tplObj) {
                if (count($tagArgs) < 2) {
-                       throw new SystemException("concat modifier needs two or more arguments", 12001);
+                       throw new SystemException("concat modifier needs two or more arguments");
                }
                
                $result = '';
index 33424a659ce78ab0a902cc3186badedda1a5a19a..894b09e2b3d193a3b30e20ae3fd92a26116b1895 100644 (file)
@@ -63,7 +63,7 @@ class BasicFileUtil {
                else {
                        if (ini_get('safe_mode')) $reason = "due to php safe_mode restrictions";
                        else $reason = "due to an unknown reason";
-                       throw new SystemException('There is no access to the system temporary folder '.$reason.' and no user specific temporary folder exists in '.WCF_DIR.'! This is a misconfiguration of your webserver software! Please create a folder called '.$path.' using your favorite ftp program, make it writable and then retry this installation.', 10000);
+                       throw new SystemException('There is no access to the system temporary folder '.$reason.' and no user specific temporary folder exists in '.WCF_DIR.'! This is a misconfiguration of your webserver software! Please create a folder called '.$path.' using your favorite ftp program, make it writable and then retry this installation.');
                }
        }
 }
index 8fe02fbe04bfe8293f368d2b9dd7cbc65d37cc4b..5ff89223f0dfbceca18bebeb8b3d2d5664afefb5 100644 (file)
@@ -374,7 +374,7 @@ class FileUtil {
                        if (!isset($remoteFile)) {
                                $localFile->close();
                                unlink($newFileName);
-                               throw new SystemException("cannot connect to http host '".$host."'", 14000);
+                               throw new SystemException("cannot connect to http host '".$host."'");
                        }
                        // build and send the http request.
                        $request = "GET ".$path.(!empty($parsedUrl['query']) ? '?'.$parsedUrl['query'] : '')." HTTP/1.0\r\n";
@@ -405,7 +405,7 @@ class FileUtil {
                                        if ($error !== false) {
                                                $localFile->close();
                                                unlink($newFileName);                                           
-                                               throw new SystemException("file ".$path." not found at host '".$host."'", 14001);
+                                               throw new SystemException("file ".$path." not found at host '".$host."'");
                                        }
                                        // write to the target system.
                                        $localFile->write($readResponse[count($readResponse) - 1]);