Show
Ignore:
Timestamp:
03/05/07 14:20:17 (2 years 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/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