// Compile constants
if ($simple === FALSE) {
// Add more 'from'
- array_push($charsCompile['from'], '{--', '--}');
+ array_unshift($charsCompile['from'], '{--', '--}');
// Add more 'to'
- array_push($charsCompile['to'], '".', '."');
+ array_unshift($charsCompile['to'], '".', '."');
} // END - if
// Compile QUOT and other non-HTML codes
- $code = str_replace($charsCompile['from'], $charsCompile['to'], $code);
+ $code = str_replace($charsCompile['from'], $charsCompile['to'], decodeEntities($code));
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'code=' . $code);
// Return compiled code
return $code;
// Generates meta description for current module and 'what' value
function generateMetaDescriptionCode () {
- // Only include from guest area and if sql_patches has correct version
+ // Only include from guest area and if ext-sql_patches has correct version
if ((getModule() == 'index') && (isExtensionInstalledAndNewer('sql_patches', '0.1.6'))) {
// Output it directly
$GLOBALS['__page_header'] .= '<meta name="description" content="' . '{?MAIN_TITLE?} ' . trim(getConfig('title_middle')) . ' ' . getTitleFromMenu('guest', getWhat()) . '" />';