]> git.mxchange.org Git - mailer.git/blobdiff - inc/extensions/ext-rewrite.php
Rewrote many parts:
[mailer.git] / inc / extensions / ext-rewrite.php
index 27200ba48fd5a90498752a20b5748ae74a84d36e..44a7d844ab143bcad4a0af00975d337969cdf4a2 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -46,8 +46,8 @@ setThisExtensionVersion('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');
+// This extension is deprecated
+// @TODO Only when 'seo' is ready: setExtensionDeprecated('Y');
 
 switch (getExtensionMode()) {
        case 'setup': // Do stuff when installation is running
@@ -69,7 +69,7 @@ switch (getExtensionMode()) {
        case 'activate': // Do stuff when admin activates this extension
                // 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__);
+                       sqlQuery("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET `ext_active`='N' WHERE `ext_name`='rewrite' LIMIT 1", __FILE__, __LINE__);
                        enableExtensionReportingFailure(TRUE);
                        addFatalMessage(__FILE__, __LINE__, '{--MOD_REWRITE_ERROR--}');
         } // END - if
@@ -166,7 +166,7 @@ switch (getExtensionMode()) {
                // Check if mod_rewrite is loadeded
                if (!isApacheModuleLoaded('mod_rewrite')) {
                        enableExtensionReportingFailure(TRUE);
-                       SQL_QUERY("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET `ext_active`='N' WHERE `ext_name`='rewrite' LIMIT 1", __FILE__, __LINE__);
+                       sqlQuery("UPDATE `{?_MYSQL_PREFIX?}_extensions` SET `ext_active`='N' WHERE `ext_name`='rewrite' LIMIT 1", __FILE__, __LINE__);
                        if (!isAdmin()) {
                                addFatalMessage(__FILE__, __LINE__, '{--MOD_REWRITE_ERROR--}');
                        } // END - if