Changeset 1004

Show
Ignore:
Timestamp:
03/05/07 14:20:17 (1 year ago)
Author:
ben
Message:

Allowing Elgg administrators to change the location of their profile definitions.

Files:

Legend:

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

    r942 r1004  
    168168//to move or copy /mod/template/templates/Default_Template/ to the new location 
    169169\$CFG->templatesroot = '$PARSEDCFG->templatesroot'; // use on-disk templates instead of DB templates  
     170 
     171// PROFILE LOCATION 
     172\$CFG->profilelocation = '$PARSEDCFG->templatelocation'; 
    170173 
    171174//Template file handing is not currently recommended. 
  • devel/_elggadmin/configdef.php

    r942 r1004  
    8989            $DEFCFG->config['templatesroot']->name = ("Templates location"); 
    9090            $DEFCFG->config['templatesroot']->description = ("The full path of your Default_Template directory"); 
     91            $DEFCFG->config['profilelocation']->name = ("Profile location"); 
     92            $DEFCFG->config['profilelocation']->description = ("The full path to your profile configuration file (usually it's best to leave this in mod/profile/)"); 
    9193             
    9294?> 
  • devel/_elggadmin/lib.php

    r958 r1004  
    3636                    $CFG->templatesroot = $CFG->dirroot . "mod/template/templates/"; 
    3737                } 
     38                if (!isset($CFG->profilelocation)) { 
     39                    $CFG->profilelocation = $CFG->dirroot . "mod/profile/"; 
     40                } 
    3841                 
    3942                // Check logins etc 
     
    7679                } 
    7780                 
    78                 // Set the templates root if it doesn't exist 
     81                // Set the templates root and profile location if they don't exist 
    7982                if (!isset($CFG->templatesroot)) { 
    8083                    $CFG->templatesroot = $CFG->dirroot . "mod/template/templates/"; 
     84                } 
     85                 
     86                if (!isset($CFG->profilelocation)) { 
     87                    $CFG->profilelocation = $CFG->dirroot . "mod/profile/"; 
    8188                } 
    8289                 
  • devel/config-dist.php

    r985 r1004  
    168168//Template file handing is not currently recommended. 
    169169//$CFG->templatestore = 'db';          // 'db' (default) or 'files' (requires $CFG->templatesroot to be set) 
     170 
     171// PROFILE LOCATION 
     172//\$CFG->profilelocation = '$PARSEDCFG->templatelocation'; 
    170173 
    171174// set up some LMS hosts.