# HG changeset patch # User Dan # Date 1215413240 14400 # Node ID 46abecc238e75e137d3d982e5bcc400a144d901f # Parent 52bffa6c499f3ab87ad30660199da1c3e4a6d95b Fixed missing require() on stats.php in pageprocess; made pageprocess update the metadata cache on page rename diff -r 52bffa6c499f -r 46abecc238e7 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 );