diff -r a1ccf990db6b -r a007145a0ff6 includes/render.php --- a/includes/render.php Sat Dec 01 02:39:49 2007 -0500 +++ b/includes/render.php Mon Dec 03 17:36:25 2007 -0500 @@ -41,7 +41,6 @@ function getPage($page_id, $namespace, $wiki = 1, $smilies = true, $filter_links = true, $redir = true, $render = true) { global $db, $session, $paths, $template, $plugins; // Common objects - dc_here('render: page requested
ID/namespace: '."$page_id, $namespace
Wiki mode: $wiki
Smilies: ".(string)$smilies."
Allow redirects: ".(string)$redir); $perms =& $session; @@ -81,7 +80,6 @@ if ( preg_match("#^\#redirect \[\[([^\]\r\n\a\t]+?)\]\]#", $message, $m) && $redir && ( !isset($_GET['redirect']) || ( isset($_GET['redirect']) && $_GET['redirect'] != 'no' ) ) ) { - dc_here('render: looks like a redirect page to me...'); $old = $paths->cpage; $a = RenderMan::strToPageID($m[1]); $a[0] = str_replace(' ', '_', $a[0]); @@ -91,8 +89,6 @@ $paths->cpage = $paths->pages[$pageid]; //die('
'.print_r($paths->cpage,true).'
'); - dc_here('render: wreckin\' $template, and reloading the theme vars to match the new page
This might get messy!'); - unset($template); unset($GLOBALS['template']); @@ -108,21 +104,17 @@ } else if(preg_match('#^\#redirect \[\[(.+?)\]\]#', $message, $m) && isset($_GET['redirect']) && $_GET['redirect'] == 'no') { - dc_here('render: looks like a redirect page to me...'); - dc_here('render: skipping redirect as requested on URI'); preg_match('#^\#redirect \[\[(.+)\]\]#', $message, $m); $m[1] = str_replace(' ', '_', $m[1]); $message = preg_replace('#\#redirect \[\[(.+)\]\]#', '
Cute wet-floor iconThis page is a redirector.
This means that this page will not show its own content by default. Instead it will display the contents of the page it redirects to.

To create a redirect page, make the first characters in the page content #redirect [[Page_ID]]. For more information, see the Enano Wiki formatting guide.

This page redirects to '.$paths->pages[$m[1]]['name'].'.


', $message); } $session->disallow_password_grab(); - dc_here('render: alright, got the text, formatting...'); return ($render) ? RenderMan::render($message, $wiki, $smilies, $filter_links) : $message; } function getTemplate($id, $parms) { global $db, $session, $paths, $template, $plugins; // Common objects - dc_here('render: template requested: '.$id); if(!isset($paths->pages[$paths->nslist['Template'].$id])) { return '[['.$paths->nslist['Template'].$id.']]'; @@ -161,7 +153,6 @@ function fetch_template_text($id) { global $db, $session, $paths, $template, $plugins; // Common objects - dc_here('render: template raw data requested: '.$id); if(!isset($paths->pages[$paths->nslist['Template'].$id])) { return '[['.$paths->nslist['Template'].$id.']]';