Changeset 692

Show
Ignore:
Timestamp:
11/05/06 14:09:19 (2 years ago)
Author:
ben
Message:

Profiles can now be located in other folders if required.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/profile/lib.php

    r659 r692  
    4949    if (!isset($CFG->profilelocation)) { 
    5050        $CFG->profilelocation = $CFG->dirroot . "mod/profile/"; 
     51    } else { 
     52     
     53        if (!file_exists($CFG->profilelocation . "profile.config.php")) { 
     54            if (!copy($CFG->dirroot . "mod/profile/profile.config.php",$CFG->profilelocation . "profile.config.php")) { 
     55                $CFG->profilelocation = $CFG->dirroot . "mod/profile/"; 
     56            } 
     57        } 
     58     
    5159    } 
    5260     
    53     $function['search:init'][] = $CFG->dirroot . "mod/profile/profile.config.php"; 
     61    $function['search:init'][] = $CFG->profilelocation . "profile.config.php"; 
    5462     
    5563    // Add items to the dashboard if it exists