ajax.php getpage now cals $template->set_page() so that templates that depend on PAGE_URLNAME etc. will not show errors
authorDan
Fri, 30 Jul 2010 15:01:06 -0400
changeset 1276 dac5fad7ad6a
parent 1275 e15d38ae8623
child 1277 4264ace0855f
ajax.php getpage now cals $template->set_page() so that templates that depend on PAGE_URLNAME etc. will not show errors
ajax.php
--- a/ajax.php	Fri Jul 30 14:39:47 2010 -0400
+++ b/ajax.php	Fri Jul 30 15:01:06 2010 -0400
@@ -173,6 +173,7 @@
 		
 		$revision_id = ( (isset($_GET['oldid'])) ? intval($_GET['oldid']) : 0 );
 		$page = new PageProcessor( $paths->page_id, $paths->namespace, $revision_id );
+		$template->set_page($page);
 		
 		$pagepass = ( isset($_REQUEST['pagepass']) ) ? $_REQUEST['pagepass'] : '';
 		$page->password = $pagepass;