includes/template.php
changeset 286 b2f985e4cef3
parent 276 acfdccf7a2bf
child 287 f6d144cba8a9
--- a/includes/template.php	Fri Nov 23 17:59:24 2007 -0500
+++ b/includes/template.php	Sat Nov 24 00:53:23 2007 -0500
@@ -748,7 +748,8 @@
       'STYLE_ID'=>$this->style,
       'JS_DYNAMIC_VARS'=>$js_dynamic,
       'UNREAD_PMS'=>$session->unread_pms,
-      'URL_ABOUT_ENANO' => makeUrlNS('Special', 'About_Enano', '', true)
+      'URL_ABOUT_ENANO' => makeUrlNS('Special', 'About_Enano', '', true),
+      'REPORT_URI' => makeUrl($paths->page, 'do=sql_report', true)
       );
     
     foreach ( $paths->nslist as $ns_id => $ns_prefix )
@@ -1047,7 +1048,7 @@
           continue;
         
         $tag_complete = <<<TPLCODE
-        ';
+';
         /* START OF CONDITION: $type ($test) */
         if ( $cond )
         {
@@ -1605,7 +1606,8 @@
     if ( !$this->fetch_block('Links') )
       $this->initLinksWidget();
     
-    $q = $db->sql_query('SELECT item_id,sidebar_id,block_name,block_type,block_content FROM '.table_prefix.'sidebar WHERE item_enabled=1 ORDER BY sidebar_id ASC, item_order ASC;');
+    $q = $db->sql_query('SELECT item_id,sidebar_id,block_name,block_type,block_content FROM '.table_prefix.'sidebar' . "\n"
+                           . '  WHERE item_enabled=1 ORDER BY sidebar_id ASC, item_order ASC;');
     if(!$q) $db->_die('The sidebar text data could not be selected.');
     
     $vars = $this->extract_vars('elements.tpl');
@@ -1794,7 +1796,8 @@
  * "critical error" messages. ** REQUIRES ** the Oxygen theme.
  */
 
-class template_nodb {
+class template_nodb
+{
   var $fading_button, $tpl_strings, $tpl_bool, $theme, $style, $no_headers, $additional_headers, $sidebar_extra, $sidebar_widgets, $toolbar_menu, $theme_list;
   function __construct() {