Changeset 1378 for devel/index.php

Show
Ignore:
Timestamp:
12/06/07 02:32:15 (1 year ago)
Author:
rho
Message:

commited #194 also completes #124

Signed-off: Rolando Espinoza La fuente <rho@prosoftpeople.com>

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/index.php

    r1343 r1378  
    44 
    55    require_once(dirname(__FILE__)."/includes.php"); 
     6 
     7    $context = isloggedin() ? 'frontpage_loggedin' : 'frontpage_loggedout'; 
     8    $title = $CFG->sitename; 
     9  
    610    templates_page_setup(); 
     11    templates_page_output($title, null, $context); 
    712 
    8     if (function_exists('pages_frontpage')) { 
    9         $page = pages_frontpage(isloggedin()); 
    10         $context = null; 
    11         $title = $page->title; 
    12         $body = $page->content; 
    13     } else { 
    14         $context = isloggedin() ? 'frontpage_loggedin' : 'frontpage_loggedout'; 
    15         $title = $CFG->sitename; 
    16         $body = null; 
    17     } 
    18              
    19     templates_page_output($title, $body, $context); 
    2013?>