includes/functions.php
changeset 473 518bc2b214f1
parent 472 bc4b58034f4d
child 479 192db6ac195b
equal deleted inserted replaced
472:bc4b58034f4d 473:518bc2b214f1
   291   global $db, $session, $paths, $template, $plugins; // Common objects
   291   global $db, $session, $paths, $template, $plugins; // Common objects
   292 
   292 
   293   $idata = RenderMan::strToPageID($page_id);
   293   $idata = RenderMan::strToPageID($page_id);
   294   $page_id_key = $paths->nslist[ $idata[1] ] . $idata[0];
   294   $page_id_key = $paths->nslist[ $idata[1] ] . $idata[0];
   295   $page_id_key = sanitize_page_id($page_id_key);
   295   $page_id_key = sanitize_page_id($page_id_key);
   296   $page_data = $paths->pages[$page_id_key];
   296   $page_data = @$paths->pages[$page_id_key];
   297   $title = ( isset($page_data['name']) ) ?
   297   $title = ( isset($page_data['name']) ) ?
   298     ( ( $page_data['namespace'] == 'Article' || !$show_ns ) ?
   298     ( ( $page_data['namespace'] == 'Article' || !$show_ns ) ?
   299       '' :
   299       '' :
   300       $paths->nslist[ $idata[1] ] )
   300       $paths->nslist[ $idata[1] ] )
   301     . $page_data['name'] :
   301     . $page_data['name'] :