more simplifications
[platal.git] / classes / Page.php
index 4b6b302..1b76701 100644 (file)
@@ -58,23 +58,7 @@ class PlatalPage extends Smarty
 
         $this->register_prefilter('at_to_globals');
         $this->register_prefilter('trimwhitespace');
-        $this->addJsLink('javascript/xorg.js');
-    }
-
-    // }}}
-    // {{{ function fakeDiogenes()
-
-    function fakeDiogenes()
-    {
-        require_once 'diogenes/diogenes.core.page.inc.php';
-        $this->register_function("extval","diogenes_func_extval");
-        $this->register_function("flags","diogenes_func_flags");
-        $this->register_function("a","diogenes_func_a");
-        $this->register_function("checkbox","diogenes_func_checkbox");
-        $this->register_function("diff","diogenes_func_diff");
-        $this->register_function("menu_item","diogenes_func_menu_item");
-        $this->register_function("tag","diogenes_func_tag");
-        $this->register_function("toolbar","diogenes_func_toolbar");
+        $this->addJsLink('xorg.js');
     }
 
     // }}}
@@ -118,7 +102,7 @@ class PlatalPage extends Smarty
         }
 
         if ($globals->debug & 1) {
-            $this->assign('db_trace', $globals->db->trace_format($this, 'database-debug.tpl'));
+            $this->assign('db_trace', XDB::trace_format($this, 'database-debug.tpl'));
         }
 
         $this->assign('validate', true);