]> git.mxchange.org Git - mailer.git/blobdiff - inc/wrapper-functions.php
Rewrites/fixes for broken template cache, the actual value was rendered but instead...
[mailer.git] / inc / wrapper-functions.php
index 8877bcc150e85ff0c92416d0088ac8b35e44235e..a184c20331912e39e1c1e0651c62ed124c88bd51 100644 (file)
@@ -956,5 +956,17 @@ function getHttpStatus () {
        return $GLOBALS['http_status'];
 }
 
+// Compiles config entries for SQL queries
+function compileSqlConfig ($sqlString) {
+       // Replace all
+       foreach (array('_MYSQL_PREFIX', '_TABLE_TYPE') as $configEntry) {
+               // "Compile" it
+               $sqlString = str_replace('{?' . $configEntry . '?}', getConfig($configEntry), $sqlString);
+       } // END - foreach
+
+       // Return the compiled SQL string
+       return $sqlString;
+}
+
 // [EOF]
 ?>