More typos fixed, thanks to Profi-Concept
authorRoland Häder <roland@mxchange.org>
Mon, 23 Feb 2009 22:53:49 +0000 (22:53 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 23 Feb 2009 22:53:49 +0000 (22:53 +0000)
inc/extensions/ext-sql_patches.php
inc/load_extensions.php
inc/modules/guest/what-wernis_portal.php

index d849e75..4c6b4cf 100644 (file)
@@ -771,15 +771,15 @@ default: // Do stuff when extension is loaded
                define('_MAX'    , getConfig('rand_no'));
        } else {
                // Set some lame ( ;-) ) default settings
-               setConfigEntry('def_refid'] = 0;
-               setConfigEntry('enable_title_deco', "N");
-               setConfigEntry('title_mod_show'   , "Y");
-               setConfigEntry('title_middle'     , "-");
+               setConfigEntry('def_refid'        , 0);
+               setConfigEntry('enable_title_deco', "N");
+               setConfigEntry('title_mod_show'   , "Y");
+               setConfigEntry('title_middle'     , "-");
                // @TODO Can we remove this? setConfigEntry('verbose_sql'        , "N");
-               define('MT_WORD' , DEFAULT_MT_WORD );
-               define('MT_WORD2', DEFAULT_MT_WORD2);
-               define('MT_WORD3', DEFAULT_MT_WORD3);
-               define('POINTS'  , DEFAULT_POINTS);
+               define('MT_WORD' , getMessage('DEFAULT_MT_WORD'));
+               define('MT_WORD2', getMessage('DEFAULT_MT_WORD2'));
+               define('MT_WORD3', getMessage('DEFAULT_MT_WORD3'));
+               define('POINTS'  , getMessage('DEFAULT_POINTS'));
        }
        break;
 }
index dd92ec8..b6783c7 100644 (file)
@@ -42,6 +42,11 @@ global $EXT_CSS_FILES;
 $EXT_CSS_FILES = array();
 $ADD = "";
 
+// Init cache instance and array
+global $cacheInstance, $cacheArray;
+$cacheInstance = null;
+$cacheArray = array();
+
 // Skip loading extensions
 if ((!isBooleanConstantAndTrue('mxchange_installed')) || (isBooleanConstantAndTrue('mxchange_installing'))) return;
 
index c60a8f3..658530e 100644 (file)
@@ -74,8 +74,10 @@ if ((getConfig('proxy_host') != "") && (getConfig('proxy_port') > 0)) {
 } // END - if
 
 $rdf->parse_RDF("http://www.wds66.com/rss.xml");
-$rdf->finish();
-// DISABLED: $rdf->clear_cache();
+
+// Fix to avoid "headers already sent" bug. Thanks to Profi-Concept
+OUTPUT_HTML($rdf->finish(true));
+//  @TODO Can this be removed? $rdf->clear_cache();
 OUTPUT_HTML("</div>");
 
 //