build menu earlier so that DB calls show up in DB trace
authorJeremy Laine <jeremy.laine@m4x.org>
Wed, 31 May 2006 19:00:04 +0000 (19:00 +0000)
committerJeremy Laine <jeremy.laine@m4x.org>
Wed, 31 May 2006 19:00:04 +0000 (19:00 +0000)
include/diogenes.page.inc.php

index 1c3aa2f..6c058db 100644 (file)
@@ -78,13 +78,13 @@ class DiogenesPage extends DiogenesCorePage
     global $globals;
     
     $this->assign('page_template', $template);
+    $this->makeMenu();
     if ($globals->debugdatabase) 
       $this->assign('db_trace',$globals->db->trace_format($this)); 
     if ($globals->debugplugins)
       $this->assign('plugins_trace',$globals->plugins->trace_format($this));
     if (($globals->debugplugins) || ($globals->debugdatabase))
       $this->assign('debug_css', $this->url("common.css"));
-    $this->makeMenu();
 
     if (!$master)
       $master = $this->getTemplate();