Changeset 420

Show
Ignore:
Timestamp:
07/02/06 18:18:46 (2 years ago)
Author:
sven
Message:

remove unnecessary leading slashes on strings appended to $CFG->*root vars

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/_files/download.php

    r296 r420  
    4545                 
    4646                // Then output some appropriate headers and send the file data! 
    47                 require_once($CFG->dirroot.'/lib/filelib.php'); 
     47                require_once($CFG->dirroot . 'lib/filelib.php'); 
    4848                $mimetype = mimeinfo('type',$file->location); 
    4949                 
  • devel/_files/icon.php

    r296 r420  
    2020            $if_modified_since = preg_replace('/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE']); 
    2121             
    22             $tstamp = filemtime($CFG->dataroot. $file->location); 
     22            $tstamp = filemtime($CFG->dataroot . $file->location); 
    2323            $lm = gmdate("D, d M Y H:i:s", $tstamp) . " GMT"; 
    2424             
     
    3434             
    3535            // Then output some appropriate headers and send the file data! 
    36             require_once($CFG->dirroot.'/lib/filelib.php'); 
     36            require_once($CFG->dirroot . 'lib/filelib.php'); 
    3737            $mimetype = mimeinfo('type',$file->originalname); 
    3838            if ($mimetype == "image/jpeg" || $mimetype == "image/png") { 
  • devel/config-dist.php

    r419 r420  
    118118// This user needs write access to {$CFG->dataroot}lms/incoming/ as that is where the incoming files will end up. 
    119119 
     120 
     121// Some other $CFG variables found in codebase 
     122 
     123// $CFG->admin 
     124// $CFG->allowobjectembed 
     125// $CFG->aspellpath 
     126// $CFG->auth 
     127// $CFG->cachetext 
     128// $CFG->currenttextiscacheable 
     129// $CFG->dbsessions 
     130// $CFG->detect_unchecked_vars 
     131// $CFG->editorbackgroundcolor 
     132// $CFG->editorfontfamily 
     133// $CFG->editorfontlist 
     134// $CFG->editorfontsize 
     135// $CFG->editorhidebuttons 
     136// $CFG->editorkillword 
     137// $CFG->editorspelling 
     138// $CFG->filterall 
     139// $CFG->framename 
     140// $CFG->handlebounces 
     141// $CFG->ignoresesskey 
     142// $CFG->lang 
     143// $CFG->lastcron 
     144// $CFG->libdir 
     145// $CFG->logsql 
     146// $CFG->maxbytes 
     147// $CFG->newsclient_lastcron 
     148// $CFG->openid_comments_allowed 
     149// $CFG->opentogoogle 
     150// $CFG->pathtodu 
     151// $CFG->perfdebug 
     152// $CFG->pixpath 
     153// $CFG->plugins->editor 
     154// $CFG->plugins->tinymce 
     155// $CFG->release 
     156// $CFG->respectsessionsettings 
     157// $CFG->secureforms 
     158// $CFG->session_error_counter 
     159// $CFG->sessioncookie 
     160// $CFG->sessiontimeout 
     161// $CFG->templatedir 
     162// $CFG->tracksessionip 
     163// $CFG->unzip 
     164// $CFG->userlocale 
     165// $CFG->version 
     166// $CFG->zip 
     167 
    120168?> 
  • devel/content/general/main.php

    r269 r420  
    33    // General content tags 
    44 
    5         $function['content:copyright'][] = path . "/content/general/content_copyright.php"; 
     5        $function['content:copyright'][] = path . "content/general/content_copyright.php"; 
    66 
    77?> 
  • devel/content/mainindex/main.php

    r320 r420  
    55// with this commented out, units/users/content_main_index.php  
    66// is used instead -- which makes more sense... 
    7 //        $function['content:mainindex'][] = path . "/content/mainindex/content_main_index.php"; 
     7//        $function['content:mainindex'][] = path . "content/mainindex/content_main_index.php"; 
    88 
    9         $function['content:about'][] = path . "/content/mainindex/content_main_about.php"; 
    10         $function['content:run_your_own'][] = path . "/content/mainindex/content_main_run_your_own.php"; 
    11         $function['content:faq'][] = path . "/content/mainindex/content_main_faq.php"; 
    12         $function['content:privacy'][] = path . "/content/mainindex/content_main_privacy.php"; 
    13         $function['content:terms'][] = path . "/content/mainindex/content_main_terms.php"; 
    14         $function['content:mainindex:loggedout'][] = path . "/content/mainindex/content_loggedout.php"; 
     9        $function['content:about'][] = path . "content/mainindex/content_main_about.php"; 
     10        $function['content:run_your_own'][] = path . "content/mainindex/content_main_run_your_own.php"; 
     11        $function['content:faq'][] = path . "content/mainindex/content_main_faq.php"; 
     12        $function['content:privacy'][] = path . "content/mainindex/content_main_privacy.php"; 
     13        $function['content:terms'][] = path . "content/mainindex/content_main_terms.php"; 
     14        $function['content:mainindex:loggedout'][] = path . "content/mainindex/content_loggedout.php"; 
    1515 
    1616 
  • devel/content/userdetails/main.php

    r269 r420  
    33    // User details content 
    44 
    5         $function['content:userdetails:edit'][] = path . "/content/mainindex/content_userdetails_edit.php"; 
     5        $function['content:userdetails:edit'][] = path . "content/mainindex/content_userdetails_edit.php"; 
    66 
    77?> 
  • devel/content/users/main.php

    r269 r420  
    44 
    55    // Blurb for editing your user details 
    6         $function['content:userdetails:edit'][] = path . "/content/users/content_userdetails_edit.php"; 
     6        $function['content:userdetails:edit'][] = path . "content/users/content_userdetails_edit.php"; 
    77 
    88?> 
  • devel/help/mainindex/main.php

    r269 r420  
    33    // Main index functions 
    44 
    5         $function['help:profile'][] = path . "/help/mainindex/profile_help_page.php"; 
    6         $function['help:files'][] = path . "/help/mainindex/file_help_page.php"; 
    7         $function['help:blogs'][] = path . "/help/mainindex/blogs_help_page.php"; 
    8         $function['help:network'][] = path . "/help/mainindex/network_help_page.php"; 
     5        $function['help:profile'][] = path . "help/mainindex/profile_help_page.php"; 
     6        $function['help:files'][] = path . "help/mainindex/file_help_page.php"; 
     7        $function['help:blogs'][] = path . "help/mainindex/blogs_help_page.php"; 
     8        $function['help:network'][] = path . "help/mainindex/network_help_page.php"; 
    99 
    1010 
  • devel/lib/dbsetup.php

    r269 r420  
    1919 
    2020if (!$maintables) { 
    21     if (file_exists("$CFG->dirroot/lib/db/$CFG->dbtype.sql")) { 
     21    if (file_exists($CFG->dirroot . "lib/db/$CFG->dbtype.sql")) { 
    2222        $db->debug = true; 
    23         if (modify_database("$CFG->dirroot/lib/db/$CFG->dbtype.sql")) { 
    24             include_once("$CFG->dirroot/version.php"); 
     23        if (modify_database($CFG->dirroot . "lib/db/$CFG->dbtype.sql")) { 
     24            include_once($CFG->dirroot . "version.php"); 
    2525            set_config('version', $version); 
    2626            $db->debug = false; 
     
    4848 
    4949    /// Upgrades 
    50     include_once("$CFG->dirroot/version.php");              # defines $version 
    51     include_once("$CFG->dirroot/lib/db/$CFG->dbtype.php");  # defines upgrades 
     50    include_once($CFG->dirroot . "version.php");              # defines $version 
     51    include_once($CFG->dirroot . "lib/db/$CFG->dbtype.php");  # defines upgrades 
    5252 
    5353    if ($CFG->version) { 
  • devel/lib/displaylib.php

    r359 r420  
    173173 
    174174    global $page_owner; 
    175     $url = url; 
    176175         
    177176    // If this is someone else's portfolio, display the user's icon 
     
    182181    if ((!defined("logged_on") || logged_on == 0) && $page_owner == -1) { 
    183182 
    184         $body = '<form action="'.url.'/login/index.php" method="post">'; 
     183        $body = '<form action="'.url.'login/index.php" method="post">'; 
    185184 
    186185        if (public_reg == true) { 
    187             $reg_link = '<a href="' . $url . '_invite/register.php">'. gettext("Register") .'</a> |'; 
     186            $reg_link = '<a href="' . url . '_invite/register.php">'. gettext("Register") .'</a> |'; 
    188187        } else { 
    189188            $reg_link = ""; 
     
    212211                        <small> 
    213212                            ' . $reg_link . ' 
    214                             <a href="' . $url . '_invite/forgotten_password.php">'. gettext("Forgotten password") .'</a> 
     213                            <a href="' . url . '_invite/forgotten_password.php">'. gettext("Forgotten password") .'</a> 
    215214                        </small></p> 
    216215                    </td> 
  • devel/lib/elgglib.php

    r408 r420  
    222222    if ($options & PARAM_URL) { // allow safe ftp, http, mailto urls 
    223223 
    224         include_once($CFG->dirroot . '/lib/validateurlsyntax.php'); 
     224        include_once($CFG->dirroot . 'lib/validateurlsyntax.php'); 
    225225 
    226226        // 
     
    290290    global $CFG; 
    291291 
    292     $basedir = opendir($CFG->dirroot .'/'. $plugin); 
     292    $basedir = opendir($CFG->dirroot . $plugin); 
    293293    while (false !== ($dir = readdir($basedir))) { 
    294294        $firstchar = substr($dir, 0, 1); 
     
    296296            continue; 
    297297        } 
    298         if (filetype($CFG->dirroot .'/'. $plugin .'/'. $dir) != 'dir') { 
     298        if (filetype($CFG->dirroot . $plugin .'/'. $dir) != 'dir') { 
    299299            continue; 
    300300        } 
     
    14401440    $referer = get_referer(); 
    14411441 
    1442     return (($referer == $goodreferer) or ($referer == $CFG->wwwroot .'/') or ($referer == $CFG->wwwroot .'/index.php')); 
     1442    return (($referer == $goodreferer) or ($referer == $CFG->wwwroot) or ($referer == $CFG->wwwroot .'index.php')); 
    14431443} 
    14441444 
     
    28522852 
    28532853        if (!empty($courseid) and isteacher($courseid)) { 
    2854             echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .'/lib/editor/htmlarea.php?id='. $courseid .'"></script>'."\n" : ''; 
     2854            echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .'lib/editor/htmlarea.php?id='. $courseid .'"></script>'."\n" : ''; 
    28552855        } else { 
    2856             echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .'/lib/editor/htmlarea.php"></script>'."\n" : ''; 
    2857         } 
    2858         echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .'/lib/editor/lang/en.php"></script>'."\n" : ''; 
     2856            echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .'lib/editor/htmlarea.php"></script>'."\n" : ''; 
     2857        } 
     2858        echo ($scriptcount < 1) ? '<script type="text/javascript" src="'. $CFG->wwwroot .'lib/editor/lang/en.php"></script>'."\n" : ''; 
    28592859        $scriptcount++; 
    28602860 
     
    30273027            unset($SESSION->fromurl); 
    30283028        } else { 
    3029             $link = $CFG->wwwroot .'/'
     3029            $link = $CFG->wwwroot
    30303030        } 
    30313031    } 
     
    30723072            $link = $_SERVER['HTTP_REFERER']; 
    30733073        } else { 
    3074             $link = $CFG->wwwroot .'/'
     3074            $link = $CFG->wwwroot
    30753075        } 
    30763076    } 
     
    32653265        echo 'function openSpellChecker() {'."\n"; 
    32663266        echo "\tvar speller = new spellChecker();\n"; 
    3267         echo "\tspeller.popUpUrl = \"" . $CFG->wwwroot ."/lib/speller/spellchecker.html\";\n"; 
    3268         echo "\tspeller.spellCheckScript = \"". $CFG->wwwroot ."/lib/speller/server-scripts/spellchecker.php\";\n"; 
     3267        echo "\tspeller.popUpUrl = \"" . $CFG->wwwroot ."lib/speller/spellchecker.html\";\n"; 
     3268        echo "\tspeller.spellCheckScript = \"". $CFG->wwwroot ."lib/speller/server-scripts/spellchecker.php\";\n"; 
    32693269        echo "\tspeller.spellCheckAll();\n"; 
    32703270        echo '}'."\n"; 
     
    32743274        echo "\teditor._textArea.value = editor.getHTML();\n"; 
    32753275        echo "\tvar speller = new spellChecker( editor._textArea );\n"; 
    3276         echo "\tspeller.popUpUrl = \"" . $CFG->wwwroot ."/lib/speller/spellchecker.html\";\n"; 
    3277         echo "\tspeller.spellCheckScript = \"". $CFG->wwwroot ."/lib/speller/server-scripts/spellchecker.php\";\n"; 
     3276        echo "\tspeller.popUpUrl = \"" . $CFG->wwwroot ."lib/speller/spellchecker.html\";\n"; 
     3277        echo "\tspeller.spellCheckScript = \"". $CFG->wwwroot ."lib/speller/server-scripts/spellchecker.php\";\n"; 
    32783278        echo "\tspeller._moogle_edit=1;\n"; 
    32793279        echo "\tspeller._editor=editor;\n"; 
     
    33693369        $CFG->auth = 'internal'; 
    33703370    } 
    3371     if (!file_exists($CFG->dirroot.'auth/'.$CFG->auth.'/lib.php')) { 
     3371    if (!file_exists($CFG->dirroot . 'auth/' . $CFG->auth . '/lib.php')) { 
    33723372        $CFG->auth = 'internal'; 
    33733373    } 
    33743374     
    3375     require_once($CFG->dirroot.'auth/'.$CFG->auth.'/lib.php'); 
     3375    require_once($CFG->dirroot . 'auth/' . $CFG->auth . '/lib.php'); 
    33763376     
    33773377    if (!$user = authenticate_user_login($username,$password)) { 
     
    34363436        } 
    34373437        $USER = NULL; 
    3438         redirect($CFG->wwwroot .'/login/index.php'); 
     3438        redirect($CFG->wwwroot .'login/index.php'); 
    34393439        exit; 
    34403440    } 
  • devel/lib/filelib.php

    r269 r420  
    361361    echo "x"; 
    362362 
    363     if(!($fp = @fopen($CFG->dataroot.'/temp/'.$file, 'w'))) { 
     363    if(!($fp = @fopen($CFG->dataroot . 'temp/'.$file, 'w'))) { 
    364364        error('put_records_csv failed to open '.$file); 
    365365    } 
  • devel/lib/lmslib.php

    r269 r420  
    1010define('LMS_SNOOPY_USER_AGENT','Elgg/LMS integration'); 
    1111 
    12 require_once($CFG->dirroot.'/lib/snoopy/Snoopy.class.inc'); 
     12require_once($CFG->dirroot . 'lib/snoopy/Snoopy.class.inc'); 
    1313 
    1414function find_lms_user($installid,$username,$signature,$confirmaction=null,$firstname=null,$lastname=null,$email=null) { 
  • devel/lib/setup.php

    r408 r420  
    2929} 
    3030 
    31 $CFG->libdir   = $CFG->dirroot .'/lib'; 
     31$CFG->libdir = $CFG->dirroot . 'lib'; 
    3232 
    3333// set up our database connection 
    3434if ($CFG->debug & E_USER_ERROR) { 
    35     require_once($CFG->dirroot.'/lib/adodb/adodb-errorhandler.inc.php'); 
    36 } 
    37 require_once($CFG->dirroot.'/lib/adodb/adodb.inc.php'); // Database access functions 
     35    require_once($CFG->dirroot . 'lib/adodb/adodb-errorhandler.inc.php'); 
     36} 
     37require_once($CFG->dirroot . 'lib/adodb/adodb.inc.php'); // Database access functions 
    3838 
    3939$db = &ADONewConnection($CFG->dbtype); 
     
    121121         
    122122        if (!file_exists($CFG->dataroot .'sessions')) { 
    123             require_once($CFG->dirroot.'lib/uploadlib.php'); 
     123            require_once($CFG->dirroot . 'lib/uploadlib.php'); 
    124124            make_upload_directory('sessions'); 
    125125        } 
     
    145145 
    146146// for phpthumb 
    147 require_once($CFG->dirroot.'lib/uploadlib.php'); 
     147require_once($CFG->dirroot . 'lib/uploadlib.php'); 
    148148make_upload_directory('cache/phpThumb'); 
    149149// for magpie rss 
     
    219219 
    220220// Load textlib 
    221 require_once($CFG->dirroot.'lib/textlib.class.php'); 
     221require_once($CFG->dirroot . 'lib/textlib.class.php'); 
    222222 
    223223if (defined('FULLME')) {     // Usually in command-line scripts like admin/cron.php 
     
    274274////// Load some core libraries 
    275275////// 
    276 require_once("{$CFG->dirroot}/lib/templates.php"); 
    277 require_once("{$CFG->dirroot}/lib/displaylib.php"); 
     276require_once($CFG->dirroot . "lib/templates.php"); 
     277require_once($CFG->dirroot . "lib/displaylib.php"); 
    278278 
    279279////// 
     
    295295if ($allmods = get_list_of_plugins('mod') ) { 
    296296    foreach ($allmods as $mod) { 
    297         $modfile = $CFG->dirroot .'/mod/'.$mod .'/lib.php'; 
     297        $modfile = $CFG->dirroot . 'mod/'.$mod .'/lib.php'; 
    298298        if (file_exists($modfile)) { 
    299299            include_once($modfile); 
  • devel/lib/textlib.class.php

    r300 r420  
    2626 
    2727/// Required files 
    28     require_once($CFG->dirroot . '/lib/typo3/class.t3lib_cs.php'); 
    29     require_once($CFG->dirroot . '/lib/typo3/class.t3lib_div.php'); 
     28    require_once($CFG->dirroot . 'lib/typo3/class.t3lib_cs.php'); 
     29    require_once($CFG->dirroot . 'lib/typo3/class.t3lib_div.php'); 
    3030 
    3131/// If ICONV is available, lets Typo3 library use it for convert 
     
    5656/// This full path constants must be defined too, transforming backslashes 
    5757/// to forward slashed beacuse Typo3 requires it. 
    58     define ('PATH_t3lib', str_replace('\\','/',$CFG->dirroot.'/lib/typo3/')); 
    59     define ('PATH_typo3', str_replace('\\','/',$CFG->dirroot.'/lib/typo3/')); 
    60     define ('PATH_site', str_replace('\\','/',$CFG->dataroot.'/temp/')); 
     58    define ('PATH_t3lib', str_replace('\\','/', $CFG->dirroot.'lib/typo3/')); 
     59    define ('PATH_typo3', str_replace('\\','/', $CFG->dirroot.'lib/typo3/')); 
     60    define ('PATH_site', str_replace('\\','/', $CFG->dataroot.'temp/')); 
    6161    define ('TYPO3_OS', stristr(PHP_OS,'win')&&!stristr(PHP_OS,'darwin')?'WIN':''); 
    6262 
  • devel/lib/uploadlib.php

    r361 r420  
    197197            } 
    198198             
    199             $destination = $CFG->dataroot .'/'. $destination; // now add it back in so we have a full path 
     199            $destination = $CFG->dataroot . $destination; // now add it back in so we have a full path 
    200200 
    201201            $exceptions = array(); //need this later if we're deleting other files. 
     
    717717    $newfilepath = preg_replace('/\/\//', '/', $newfilepath); 
    718718    if (strpos($newfilepath, $CFG->dataroot) === false) { 
    719         $newfilepath = $CFG->dataroot .'/'. $newfilepath; 
     719        $newfilepath = $CFG->dataroot . $newfilepath; 
    720720    } 
    721721    $courseid = 0; 
  • devel/profile/edit.php

    r333 r420  
    55// Run includes 
    66require_once(dirname(dirname(__FILE__))."/includes.php"); 
    7 require("{$CFG->dirroot}/profile/profile.class.php"); 
     7require_once($CFG->dirroot . "profile/profile.class.php"); 
    88 
    99// define what profile to show 
  • devel/profile/index.php

    r332 r420  
    55// Run includes 
    66require_once(dirname(dirname(__FILE__)) . '/includes.php'); 
    7 require_once($CFG->dirroot . '/profile/profile.class.php'); 
     7require_once($CFG->dirroot . 'profile/profile.class.php'); 
    88 
    99// define what profile to show 
  • devel/profile/profile.class.php

    r357 r420  
    534534            require_once($CFG->dirroot.'lib/uploadlib.php'); 
    535535            $um = new upload_manager('foaf_file',false,true,0,true); 
    536             $dir = $CFG->dataroot.'/tmp/foaf/'; 
     536            $dir = $CFG->dataroot . 'tmp/foaf/'; 
    537537            if (!$um->process_file_uploads($dir)) { 
    538538                $messages[] = gettext("There was an error uploading the file. Possibly the file was too large, or the upload was interrupted."); 
  • devel/units/display/function_log_on_pane.php

    r359 r420  
    22 
    33    global $page_owner; 
    4     $url = url; 
    54         
    65    // If this is someone else's portfolio, display the user's icon 
     
    1211 
    1312        $body = '<li>'; 
    14         $body .= '<form action="'.url.'/login/index.php" method="post">'; 
     13        $body .= '<form action="'.url.'login/index.php" method="post">'; 
    1514 
    1615        if (public_reg == true) { 
    17             $reg_link = '<a href="' . $url . '_invite/register.php">'. gettext("Register") .'</a> |'; 
     16            $reg_link = '<a href="' . url . '_invite/register.php">'. gettext("Register") .'</a> |'; 
    1817        } else { 
    1918            $reg_link = ""; 
     
    4241                        <small> 
    4342                            ' . $reg_link . ' 
    44                             <a href="' . $url . '_invite/forgotten_password.php">'. gettext("Forgotten password") .'</a> 
     43                            <a href="' . url . '_invite/forgotten_password.php">'. gettext("Forgotten password") .'</a> 
    4544                        </small></p> 
    4645                    </td> 
  • devel/units/files/files_actions.php

    r333 r420  
    5050            $ul_username = run("users:id_to_name", $page_owner); 
    5151            $upload_folder = $textlib->substr($ul_username,0,1); 
    52             require_once($CFG->dirroot.'/lib/uploadlib.php'); 
     52            require_once($CFG->dirroot.'lib/uploadlib.php'); 
    5353            $total_quota = get_field_sql('SELECT sum(size) FROM '.$CFG->prefix.'files WHERE owner = ?',array($page_owner)); 
    5454            $max_quota = get_field('users','file_quota','ident',$page_owner); 
  • devel/units/files/files_links_make.php

    r387 r420  
    99        if (run("users:access_level_check",$file->access) || $file->owner == $_SESSION['userid']) { 
    1010            if (!in_array(run("files:mimetype:inline",$CFG->dataroot.$file->location), $data['mimetype:inline'])) { 
    11                 require_once($CFG->dirroot.'/lib/filelib.php'); 
     11                require_once($CFG->dirroot.'lib/filelib.php'); 
    1212                $mimeinfo = mimeinfo('type',$file->location); 
    1313                if ($mimeinfo == "audio/mpeg" || $mimeinfo == "audio/mp3") { 
  • devel/units/files/folder_view.php

    r388 r420  
    117117            $icon = $url . "_files/icon.php?id=" . $file->ident; 
    118118            $filepath = $url . "$username/files/$folder/$ident/$originalname"; 
    119             require_once($CFG->dirroot.'/lib/filelib.php'); 
     119            require_once($CFG->dirroot.'lib/filelib.php'); 
    120120            $mimetype = mimeinfo('type',$file->originalname); 
    121121            if ($mimetype == "audio/mpeg" || $mimetype == "audio/mp3") { 
  • devel/units/files/function_rss_getitems.php

    r375 r420  
    3939             
    4040            if (is_array($files) && sizeof($files) > 0) { 
    41                 require_once($CFG->dirroot.'/lib/filelib.php'); 
     41                require_once($CFG->dirroot . 'lib/filelib.php'); 
    4242                foreach($files as $file) { 
    4343                    $title = (stripslashes($file->title)); 
  • devel/units/files/function_rss_publish.php

    r396 r420  
    11<?php 
    22global $CFG; 
    3 require_once($CFG->dirroot.'/lib/uploadlib.php'); 
     3require_once($CFG->dirroot.'lib/uploadlib.php'); 
    44/* 
    55 *    Function to publish weblog posts as RSS, either a static file or return output 
  • devel/units/files/function_search_rss.php

    r269 r420  
    3636    } 
    3737    if (!empty($file_refs)) { 
    38         require_once($CFG->dirroot.'/lib/filelib.php'); 
     38        require_once($CFG->dirroot.'lib/filelib.php'); 
    3939        foreach($file_refs as $file) { 
    4040            $mimetype = mimeinfo('type',$file->location); 
  • devel/units/icons/function_actions.php

    r415 r420  
    7171            } 
    7272        } 
    73         require_once($CFG->dirroot.'/lib/uploadlib.php'); 
     73        require_once($CFG->dirroot.'lib/uploadlib.php'); 
    7474        // TODO passing 0 as maxbytes here as icon_quota is based on number of icons 
    7575        // so upload_manager will look at PHP settings instead. 
  • devel/units/profile/function_rss_publish.php

    r396 r420  
    11<?php 
    22global $CFG; 
    3 require_once($CFG->dirroot.'/lib/uploadlib.php'); 
     3require_once($CFG->dirroot.'lib/uploadlib.php'); 
    44/* 
    55 *    Function to publish weblog posts and files as RSS, either a static file or return output 
  • devel/units/search/search_suggest_rss.php

    r269 r420  
    77        $run_result .= "<p><a href=\"".url."search/rss.php?tag=$tag\">" . gettext("RSS feed for this tag") . "</a></p>"; 
    88        global $metatags; 
    9         $metatags .= "\n<link rel=\"alternate\" type=\"application/rss+xml\" title=\"$tag :: RSS\" href=\"".url."/search/rss.php?tag=$tag\" />\n"; 
     9        $metatags .= "\n<link rel=\"alternate\" type=\"application/rss+xml\" title=\"$tag :: RSS\" href=\"".url."search/rss.php?tag=$tag\" />\n"; 
    1010         
    1111    } 
  • devel/units/weblogs/function_rss_publish.php

    r396 r420  
    11<?php 
    22global $CFG; 
    3 require_once($CFG->dirroot.'/lib/uploadlib.php'); 
     3require_once($CFG->dirroot.'lib/uploadlib.php'); 
    44/* 
    55 *    Function to publish weblog posts as RSS, either a static file or return output