Changeset 519

Show
Ignore:
Timestamp:
08/28/06 13:42:03 (2 years ago)
Author:
misja
Message:

includes_system.php now gets loaded before lib/userlib.php, in order to have gettext available at an earlier stage.

Files:

Legend:

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

    r513 r519  
    1414            die('Elgg configuration error: .htaccess is missing. Please see INSTALL file.'); 
    1515        } 
    16          
     16 
    1717    // Check config values make sense 
    1818        require_once(dirname(__FILE__).'/sanitychecks.php'); 
     
    2121    *    HELPER LIBRARIES 
    2222    ****************************************************************************/ 
    23          
     23 
    2424    // Load datalib 
    2525        require_once($CFG->dirroot.'lib/datalib.php'); 
     
    3030    // Load constants 
    3131        require_once($CFG->dirroot.'lib/constants.php'); 
    32          
     32 
    3333    /*************************************************************************** 
    3434    *    CORE FUNCTIONALITY LIBRARIES 
     
    3737    // Load setup.php which will initialize database connections and such like. 
    3838        require_once($CFG->dirroot.'lib/setup.php'); 
    39          
     39 
     40    // Load required system files: do not edit this line. 
     41        require_once(dirname(__FILE__)."/includes_system.php"); 
     42 
    4043    // User functions 
    4144        require_once($CFG->dirroot.'lib/userlib.php'); 
    42          
    43     // Load required system files: do not edit this line. 
    44         require_once(dirname(__FILE__)."/includes_system.php"); 
    45          
     45 
    4646    // Check database 
    4747        require_once($CFG->dirroot.'lib/dbsetup.php'); 
     
    5050    *    PLUGIN INITIALISATION 
    5151    ****************************************************************************/ 
    52          
     52 
    5353    // XMLRPC 
    5454    //    @include($CFG->dirroot . "units/rpc/main.php"); 
    55      
     55 
    5656        if ($allmods = get_list_of_plugins('mod') ) { 
    5757            foreach ($allmods as $mod) { 
     
    6262           } 
    6363        } 
    64      
     64 
    6565    /*************************************************************************** 
    6666    *    CONTENT MODULES 
     
    6868    *    selection process will be required 
    6969    ****************************************************************************/ 
    70          
     70 
    7171    // General 
    7272        include_once($CFG->dirroot . "content/general/main.php"); 
     
    7575    // User-related 
    7676        include_once($CFG->dirroot . "content/users/main.php"); 
    77      
     77 
    7878    /*************************************************************************** 
    7979    *    HELP MODULES 
    8080    ****************************************************************************/ 
    81          
     81 
    8282    // Include main 
    8383        include_once($CFG->dirroot . "help/mainindex/main.php"); 
    84          
     84 
    8585    // Visual editor (tinyMCE) 
    8686        @include($CFG->dirroot . "units/tinymce/main.php"); 
    87      
     87 
    8888    // Calendaring system 
    8989    //    require($CFG->dirroot . "units/calendar/main.php"); 
    90      
     90 
    9191    /*************************************************************************** 
    9292    *    START-OF-PAGE RUNNING 
    9393    ****************************************************************************/ 
    94      
     94 
    9595        run("init"); 
    96          
     96 
    9797    // Walled garden checking: if we're not logged in, 
    9898    // and walled garden functionality is turned on, redirect to 
    9999    // the logon screen 
    100100        if (!empty($CFG->walledgarden) && context != "external" && !logged_on) { 
    101              
    102101            header("Location: " . $CFG->wwwroot . "login/index.php"); 
    103102            exit(); 
    104              
    105103        } 
    106          
     104 
    107105?>