Changeset 804

Show
Ignore:
Timestamp:
01/16/07 17:23:42 (2 years ago)
Author:
ben
Message:

The template root has been changed to sit in /mod/template/templates/ - eventually this will autodiscover new templates that have been positioned here.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/config-dist.php

    r767 r804  
    150150//$CFG->disable_usertemplates = true;  // users can only choose from available templates 
    151151//$CFG->disable_templatechanging = true; // users can't change their template at all 
    152 //Templates root defaults to /_templates; if you change this, you will need 
    153 //to move or copy /_templates/Default_Template/ to the new location 
     152//Templates root defaults to /mod/template/templates; if you change this, you will need 
     153//to move or copy /mod/template/templates/Default_Template/ to the new location 
    154154//$CFG->templatesroot = '/some/path/'; // use on-disk templates instead of DB templates  
    155155 
  • devel/lib/setup.php

    r793 r804  
    378378////// 
    379379if (!isset($CFG->templatestore)) { $CFG->templatestore = 'db' ;} 
    380 if (!isset($CFG->templatesroot)) { $CFG->templatesroot = $CFG->dirroot . "_templates/";} 
     380if (!isset($CFG->templatesroot)) { $CFG->templatesroot = $CFG->dirroot . "mod/template/templates/";} 
    381381if (!isset($PAGE->menu       )) { $PAGE->menu        = array();} 
    382382if (!isset($PAGE->menu_sub   )) { $PAGE->menu_sub    = array();}