Changeset 1128

Show
Ignore:
Timestamp:
05/30/07 11:58:59 (2 years ago)
Author:
ben
Message:

Moving a metatags call into _init

Files:

Legend:

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

    r1123 r1128  
    1414    $page_owner = $profile_id; 
    1515     
    16     $metatags .= "<style type=\"text/css\">"; 
    17     $metatags .= str_replace("{{url}}", $CFG->wwwroot, file_get_contents(dirname(__FILE__). "/file-icons.css")); 
    18     $metatags .= "</style>"; 
    19      
    20  
    2116    if (isloggedin()) { 
    2217        if (defined("context") && context == "files" && $page_owner == $_SESSION['userid']) { 
     
    5146    global $CFG; 
    5247    global $function; 
     48    global $metatags; 
     49 
     50    // Styles for file icons 
     51        $metatags .= "<style type=\"text/css\">"; 
     52        $metatags .= str_replace("{{url}}", $CFG->wwwroot, file_get_contents(dirname(__FILE__). "/file-icons.css")); 
     53        $metatags .= "</style>"; 
     54         
    5355    // Functions to perform upon initialisation 
    5456        $function['files:init'][] = $CFG->dirroot . "mod/file/lib/files_init.php";