X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fextensions%2Fext-rewrite.php;h=341cc122cc622638c9f1477cd464bf3148394372;hb=1d6211aa6e979663f2235c6f94b5aae09754c915;hp=74dd8af8dfa1deb21fcc2ede18cd470951b8ef57;hpb=964a3b539e335f6d70e7779630fd3d25fd38398d;p=mailer.git diff --git a/inc/extensions/ext-rewrite.php b/inc/extensions/ext-rewrite.php index 74dd8af8df..341cc122cc 100644 --- a/inc/extensions/ext-rewrite.php +++ b/inc/extensions/ext-rewrite.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -43,8 +43,8 @@ if (!defined('__SECURITY')) { // Version number setThisExtensionVersion('0.1.3'); -// Version history array (add more with , '0.1.0' and so on) -setExtensionVersionHistory(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3')); +// Version history array (add more with , '0.0.1' and so on) +setExtensionVersionHistory(array('0.0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3')); // This extension is deprecated! // Only since 'seo' is ready! setExtensionDeprecated('Y'); @@ -53,7 +53,7 @@ switch (getExtensionMode()) { case 'register': // Do stuff when installation is running // Check if mod_rewrite is loadeded if (!isApacheModuleLoaded('mod_rewrite')) { - setExtensionReportsFailure(true); + enableExtensionReportingFailure(true); addFatalMessage(__FILE__, __LINE__, '{--MOD_REWRITE_ERROR--}'); } // END - if @@ -70,7 +70,7 @@ switch (getExtensionMode()) { // Check if mod_rewrite is loadeded if (!isApacheModuleLoaded('mod_rewrite')) { SQL_QUERY("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET `ext_active`='N' WHERE `ext_name`='rewrite' LIMIT 1", __FILE__, __LINE__); - setExtensionReportsFailure(true); + enableExtensionReportingFailure(true); addFatalMessage(__FILE__, __LINE__, '{--MOD_REWRITE_ERROR--}'); } // END - if @@ -148,7 +148,7 @@ switch (getExtensionMode()) { case '0.1.3': // Check if mod_rewrite is loadeded if (!isApacheModuleLoaded('mod_rewrite')) { - setExtensionReportsFailure(true); + enableExtensionReportingFailure(true); //addFatalMessage(__FILE__, __LINE__, '{--MOD_REWRITE_ERROR--}'); } // END - if setExtensionUpdateNotes("Es wird beim Registrieren und aktivieren geprüft, ob im Apache das Modul mod_rewrite geladen wurde. Wenn mod_rewrite nicht gefunden werden konnte, wird abgebrochen."); @@ -165,9 +165,11 @@ switch (getExtensionMode()) { case 'init': // Do stuff when extension is initialized // Check if mod_rewrite is loadeded if (!isApacheModuleLoaded('mod_rewrite')) { - setExtensionReportsFailure(true); + enableExtensionReportingFailure(true); SQL_QUERY("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET `ext_active`='N' WHERE `ext_name`='rewrite' LIMIT 1", __FILE__, __LINE__); - if (!isAdmin()) addFatalMessage(__FILE__, __LINE__, '{--MOD_REWRITE_ERROR--}'); + if (!isAdmin()) { + addFatalMessage(__FILE__, __LINE__, '{--MOD_REWRITE_ERROR--}'); + } // END - if } // END - if break;