From: Roland Häder Date: Thu, 14 Jul 2011 15:58:35 +0000 (+0000) Subject: Final fixes? X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d97cda9d1eb21ab0d22e6e5a08c4d14cbae5a6f0;p=mailer.git Final fixes? --- diff --git a/inc/extensions/ext-user.php b/inc/extensions/ext-user.php index 9cb4d30c74..c10a003f36 100644 --- a/inc/extensions/ext-user.php +++ b/inc/extensions/ext-user.php @@ -486,8 +486,8 @@ INDEX (`refid`)", case '0.4.6': // SQL queries for v0.4.6 // SQL commands to run - addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title`='{OPEN_TEMPLATE}POINTS{CLOSE_TEMPLATE} gutschreiben' WHERE `what` = 'add_points' LIMIT 1"); - addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title`='{OPEN_TEMPLATE}POINTS{CLOSE_TEMPLATE} abziehen' WHERE `what` = 'sub_points' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title`='{OPEN_CONFIG}POINTS{CLOSE_CONFIG} gutschreiben' WHERE `what` = 'add_points' LIMIT 1"); + addExtensionSql("UPDATE `{?_MYSQL_PREFIX?}_admin_menu` SET `title`='{OPEN_CONFIG}POINTS{CLOSE_CONFIG} abziehen' WHERE `what` = 'sub_points' LIMIT 1"); addAdminMenuSql('user','sub_points','{OPEN_CONFIG}POINTS{CLOSE_CONFIG} abziehen','Allen oder einem Mitglied {OPEN_CONFIG}POINTS{CLOSE_CONFIG} abziehen.', 8); // This update depends on ext-menu update diff --git a/inc/template-functions.php b/inc/template-functions.php index 25e899ee11..382e4a6c9c 100644 --- a/inc/template-functions.php +++ b/inc/template-functions.php @@ -240,8 +240,11 @@ function doFinalCompilation ($code, $insertComments = true, $enableCodes = true) // Use it again $code = $newContent; - // Compile the final code - $code = compileRawCode($code); + // Compile the final code if insertComments is true + if ($insertComments == true) { + // ... because SQL queries shall keep OPEN_CONFIG and such in + $code = compileRawCode($code); + } // END - if // Count round $count++;