Fixed SYSMSG tag in templates causing problems; commented out ENANO_DEBUG; fixed bad table prefix in installer payload logic
authorDan
Mon, 28 Jan 2008 21:10:45 -0500
changeset 383 1030864dc319
parent 382 2ccb55995aef
child 384 42522b5bb227
Fixed SYSMSG tag in templates causing problems; commented out ENANO_DEBUG; fixed bad table prefix in installer payload logic
includes/template.php
index.php
install/includes/payload.php
--- a/includes/template.php	Sun Jan 27 23:45:53 2008 -0500
+++ b/includes/template.php	Mon Jan 28 21:10:45 2008 -0500
@@ -1111,7 +1111,7 @@
     //
     
     // System messages
-    $text = preg_replace('/<!-- SYSMSG ([A-z0-9\._-]+?) -->/is', '\' . $this->tplWikiFormat($paths->sysMsg(\'\\1\')) . \'', $text);
+    $text = preg_replace('/<!-- SYSMSG ([A-z0-9\._-]+?) -->/is', '\' . $template->tplWikiFormat($paths->sysMsg(\'\\1\')) . \'', $text);
     
     // Template variables
     $text = preg_replace('/\{([A-z0-9_-]+?)\}/is', '\' . $this->tpl_strings[\'\\1\'] . \'', $text);
--- a/index.php	Sun Jan 27 23:45:53 2008 -0500
+++ b/index.php	Mon Jan 28 21:10:45 2008 -0500
@@ -19,7 +19,7 @@
   define('ENANO_INTERFACE_INDEX', '');
   
   // For the mighty and brave.
-  define('ENANO_DEBUG', '');
+  // define('ENANO_DEBUG', '');
  
   // Set up gzip encoding before any output is sent
   
--- a/install/includes/payload.php	Sun Jan 27 23:45:53 2008 -0500
+++ b/install/includes/payload.php	Mon Jan 28 21:10:45 2008 -0500
@@ -127,7 +127,7 @@
   $wkt = $db->escape($wkt);
   
   $vars = array(
-      'TABLE_PREFIX'         => $_POST['table_prefix'],
+      'TABLE_PREFIX'         => table_prefix,
       'SITE_NAME'            => $db->escape($_POST['site_name']),
       'SITE_DESC'            => $db->escape($_POST['site_desc']),
       'COPYRIGHT'            => $db->escape($_POST['copyright']),