Fixed missing require() on stats.php in pageprocess; made pageprocess update the metadata cache on page rename
authorDan
Mon, 07 Jul 2008 02:47:20 -0400
changeset 600 46abecc238e7
parent 599 52bffa6c499f
child 601 9c1f07ae26d5
Fixed missing require() on stats.php in pageprocess; made pageprocess update the metadata cache on page rename
includes/pageprocess.php
--- a/includes/pageprocess.php	Mon Jul 07 02:46:44 2008 -0400
+++ b/includes/pageprocess.php	Mon Jul 07 02:47:20 2008 -0400
@@ -354,6 +354,7 @@
         // Something sent content, so we'll assume the page exist...ed at least according to the plugin
         if ( $this->namespace != 'Special' && $this->namespace != 'Admin' && $do_stats )
         {
+          require_once(ENANO_ROOT.'/includes/stats.php');
           doStats($this->page_id, $this->namespace);
         }
       }
@@ -863,6 +864,9 @@
     if ( !$q )
       $db->_die();
     
+    // Update the cache
+    $paths->update_metadata_cache();
+    
     return array(
       'success' => true
       );