]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing Theme Config Variables MDL-6784
authorskodak <skodak>
Mon, 9 Oct 2006 10:12:41 +0000 (10:12 +0000)
committerskodak <skodak>
Mon, 9 Oct 2006 10:12:41 +0000 (10:12 +0000)
23 files changed:
course/search.php
lib/moodlelib.php
lib/setup.php
lib/weblib.php
theme/chameleon/footer.html
theme/chameleon/header.html
theme/chameleon/ui/chameleon.php
theme/cornflower/footer.html
theme/cornflower/header.html
theme/formal_white/header.html
theme/index.php
theme/metal/header.html
theme/oceanblue/header.html
theme/orangewhite/header.html
theme/orangewhitepda/header.html
theme/preview.php
theme/standard/header.html
theme/standardblue/header.html
theme/standardgreen/header.html
theme/standardlogo/header.html
theme/standardred/header.html
theme/standardwhite/header.html
theme/wood/header.html

index e2d5d7a44836c0aaebd8bf8ad1a9463dbfd23ff3..652f2370b3746cc6674d9b1e64e69fd546555cef 100644 (file)
                 if (empty($THEME->custompix)) {
                     $pixpath = "$CFG->wwwroot/pix";
                 } else {
-                    $pixpath = "$CFG->wwwroot/theme/$CFG->theme/pix";
+                    $pixpath = "$CFG->themedir/$CFG->theme/pix";
                 }
                 echo "<a title=\"".get_string("settings")."\" href=\"$CFG->wwwroot/course/edit.php?id=$course->id\"><img".
                     " src=\"$pixpath/t/edit.gif\" height=\"11\" width=\"11\" border=\"0\"></a> ";
index 29bb598ff81297c172a1cffa7b0c303d0431bf01..8519da19ea4a973cc96aac69f5f90d5d8277611d 100644 (file)
@@ -4670,11 +4670,11 @@ function get_list_of_themes() {
     }
 
     foreach ($themelist as $key => $theme) {
-        if (!file_exists("$CFG->dirroot/theme/$theme/config.php")) {   // bad folder
+        if (!file_exists("$CFG->themedir/$theme/config.php")) {   // bad folder
             continue;
         }
         unset($THEME);    // Note this is not the global one!!  :-)
-        include("$CFG->dirroot/theme/$theme/config.php");
+        include("$CFG->themedir/$theme/config.php");
         if (!isset($THEME->sheets)) {   // Not a valid 1.5 theme
             continue;
         }
@@ -5127,10 +5127,21 @@ function get_list_of_plugins($plugin='mod', $exclude='', $basedir='') {
     $plugins = array();
 
     if (empty($basedir)) {
-        $basedir = $CFG->dirroot .'/'. $plugin;
+
+        # This switch allows us to use the appropiate theme directory - and potentialy alternatives for other plugins
+        switch ($plugin) {
+        case "theme":
+            $basedir = $CFG->themedir;
+            break;
+
+        default:
+            $basedir = $CFG->dirroot .'/'. $plugin;
+        }
+
     } else {
         $basedir = $basedir .'/'. $plugin;
     }
+
     if (file_exists($basedir) && filetype($basedir) == 'dir') {
         $dirhandle = opendir($basedir);
         while (false !== ($dir = readdir($dirhandle))) {
@@ -5978,8 +5989,10 @@ function httpsrequired() {
     if (!empty($CFG->loginhttps)) {
         $HTTPSPAGEREQUIRED = true;
         $CFG->httpswwwroot = str_replace('http:', 'https:', $CFG->wwwroot);
+        $CFG->httpsthemewww = str_replace('http:', 'https:', $CFG->themewww);
     } else {
         $CFG->httpswwwroot = $CFG->wwwroot;
+        $CFG->httpsthemewww = $CFG->themewww;
     }
 }
 
index c28c8236a30e39811298e9e5cfa7790a85cddee8..c23a806f4b81ebcfe6149b721e6b663e936dc6fa 100644 (file)
@@ -496,15 +496,18 @@ $CFG->os = PHP_OS;
 /// Load up theme variables (colours etc)
 
     if (!isset($CFG->themedir)) {
-        $CFG->themedir = $CFG->dirroot.'/theme/';
-        $CFG->themewww = $CFG->wwwroot.'/theme/';
+        $CFG->themedir = $CFG->dirroot.'/theme';
+        $CFG->themewww = $CFG->wwwroot.'/theme';
     }
+    $CFG->httpsthemewww = $CFG->themewww; 
 
     if (isset($_GET['theme'])) {
         if ($CFG->allowthemechangeonurl || confirm_sesskey()) {
-            if (!detect_munged_arguments($_GET['theme'], 0) and file_exists($CFG->themedir. $_GET['theme'])) {
-                $SESSION->theme = $_GET['theme'];
+            $themename = clean_param($_GET['theme'], PARAM_SAFEDIR);
+            if (($themename != '') and file_exists($CFG->themedir.'/'.$themename)) {
+                $SESSION->theme = $themename;
             }
+            unset($themename);
         }
     }
 
index be2e6842fdf1c92a453ef7a9b2566e121d8e9e8c..1aa70fa2f3193d12cfcab3a617e3e93445854b44 100644 (file)
@@ -2414,7 +2414,7 @@ function style_sheet_setup($lastmodified=0, $lifetime=300, $themename='', $force
 
     if (!empty($forceconfig)) {        // Page wants to use the config from this theme instead
         unset($THEME);
-        include($CFG->themedir.$forceconfig.'/'.'config.php');
+        include($CFG->themedir.'/'.$forceconfig.'/'.'config.php');
     }
 
 /// If this is the standard theme calling us, then find out what sheets we need
@@ -2445,8 +2445,8 @@ function style_sheet_setup($lastmodified=0, $lifetime=300, $themename='', $force
 /// Work out the last modified date for this theme
 
     foreach ($THEME->sheets as $sheet) {
-        if (file_exists($CFG->themedir.$themename.'/'.$sheet.'.css')) {
-            $sheetmodified = filemtime($CFG->themedir.$themename.'/'.$sheet.'.css');
+        if (file_exists($CFG->themedir.'/'.$themename.'/'.$sheet.'.css')) {
+            $sheetmodified = filemtime($CFG->themedir.'/'.$themename.'/'.$sheet.'.css');
             if ($sheetmodified > $lastmodified) {
                 $lastmodified = $sheetmodified;
             }
@@ -2504,12 +2504,12 @@ function style_sheet_setup($lastmodified=0, $lifetime=300, $themename='', $force
     /// Actually output all the files in order.
         foreach ($files as $file) {
             echo '/***** '.$file[1].' start *****/'."\n\n";
-            @include_once($file[0].$file[1]);
+            @include_once($file[0].'/'.$file[1]);
             echo '/***** '.$file[1].' end *****/'."\n\n";
         }
     }
 
-    return $CFG->themewww.$themename;   // Only to help old themes (1.4 and earlier)
+    return $CFG->themewww.'/'.$themename;   // Only to help old themes (1.4 and earlier)
 }
 
 
@@ -2523,13 +2523,13 @@ function theme_setup($theme = '', $params=NULL) {
     }
 
 /// If the theme doesn't exist for some reason then revert to standardwhite
-    if (!file_exists($CFG->themedir. $theme .'/config.php')) {
+    if (!file_exists($CFG->themedir .'/'. $theme .'/config.php')) {
         $CFG->theme = $theme = 'standardwhite';
     }
 
 /// Load up the theme config
     $THEME = NULL;   // Just to be sure
-    include($CFG->themedir. $theme .'/config.php');  // Main config for current theme
+    include($CFG->themedir .'/'. $theme .'/config.php');  // Main config for current theme
 
 /// Put together the parameters
     if (!$params) {
@@ -2556,23 +2556,23 @@ function theme_setup($theme = '', $params=NULL) {
         $CFG->pixpath = $CFG->wwwroot .'/pix';
         $CFG->modpixpath = $CFG->wwwroot .'/mod';
     } else {
-        $CFG->pixpath = $CFG->themewww . $theme .'/pix';
-        $CFG->modpixpath = $CFG->themewww . $theme .'/pix/mod';
+        $CFG->pixpath = $CFG->themewww .'/'. $theme .'/pix';
+        $CFG->modpixpath = $CFG->themewww .'/'. $theme .'/pix/mod';
     }
 
 /// Header and footer paths
-    $CFG->header = $CFG->themedir . $theme .'/header.html';
-    $CFG->footer = $CFG->themedir . $theme .'/footer.html';
+    $CFG->header = $CFG->themedir .'/'. $theme .'/header.html';
+    $CFG->footer = $CFG->themedir .'/'. $theme .'/footer.html';
 
 /// Define stylesheet loading order
     $CFG->stylesheets = array();
     if ($theme != 'standard') {    /// The standard sheet is always loaded first
-        $CFG->stylesheets[] = $CFG->themewww.'standard/styles.php'.$paramstring;
+        $CFG->stylesheets[] = $CFG->themewww.'/standard/styles.php'.$paramstring;
     }
     if (!empty($THEME->parent)) {  /// Parent stylesheets are loaded next
-        $CFG->stylesheets[] = $CFG->themewww.$THEME->parent.'/styles.php'.$paramstring;
+        $CFG->stylesheets[] = $CFG->themewww.'/'.$THEME->parent.'/styles.php'.$paramstring;
     }
-    $CFG->stylesheets[] = $CFG->themewww.$theme.'/styles.php'.$paramstring;
+    $CFG->stylesheets[] = $CFG->themewww.'/'.$theme.'/styles.php'.$paramstring;
 
 }
 
index dd44283c711fd0857c923e894e75d292cf5b7f65..a54e3d9567bf053105ac511e2f7193ab3e30e1e9 100644 (file)
@@ -14,9 +14,9 @@
 <?php echo $homelink ?>
 <!-- <p><div class="homelink"><a target="<?php echo $CFG->framename ?>" href="<?php $CFG->wwwroot ?>/course/view.php?id=<?php $course->id ?>"> <?php $course->shortname ?> </a></div></p> -->
 <p>
-<!-- <<a href="http://validator.w3.org/check?verbose=1&amp;ss=1&amp;uri=<?php echo urlencode(qualified_me()) ?>"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/xhtml_1_0.gif" alt="XHTML Validator" /></a>
-<a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo urlencode(qualified_me()) ?>&amp;warning=1&amp;profile=css2&amp;usermedium=all"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/css.gif" alt="CSS Validator" /></a> 
-<a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&amp;url1=<?php echo urlencode(qualified_me()) ?>"><img src="<?php echo "$CFG->wwwroot/theme/$CFG->theme" ?>/section_508.gif" alt="Section 508 Validator" /></a> -->
+<!-- <<a href="http://validator.w3.org/check?verbose=1&amp;ss=1&amp;uri=<?php echo urlencode(qualified_me()) ?>"><img src="<?php echo "$CFG->themewww/$CFG->theme" ?>/xhtml_1_0.gif" alt="XHTML Validator" /></a>
+<a href="http://jigsaw.w3.org/css-validator/validator?uri=<?php echo urlencode(qualified_me()) ?>&amp;warning=1&amp;profile=css2&amp;usermedium=all"><img src="<?php echo "$CFG->themewww/$CFG->theme" ?>/css.gif" alt="CSS Validator" /></a> 
+<a href="http://www.contentquality.com/mynewtester/cynthia.exe?rptmode=-1&amp;url1=<?php echo urlencode(qualified_me()) ?>"><img src="<?php echo "$CFG->themewww/$CFG->theme" ?>/section_508.gif" alt="Section 508 Validator" /></a> -->
 </p>
 </div>
 </div>
index 25f5d43c8e4258795251b729b183fb9ceee61531..78c7601dc031181b15ce64aba37c64e4690967c8 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     
     <?php include('ui/chameleon.php'); ?>
     <?php include("$CFG->javascript"); ?>
index 4de72d9ed06f9d45dfeb0040b2530afacb1bb4eb..3bf627c2fd027281c576c589fd35b89b11fae8fc 100644 (file)
@@ -20,11 +20,11 @@ if (isset($THEME->chameleonenabled) && $THEME->chameleonenabled) {
         $chameleon_theme = (isset($CFG->coursetheme)) ? $CFG->coursetheme : current_theme();
 ?>
 
-<style type="text/css"> @import '<?php echo "$CFG->wwwroot/theme/$chameleon_theme" ?>/ui/chameleon_ui.css'; </style>
+<style type="text/css"> @import '<?php echo "$CFG->themewww/$chameleon_theme" ?>/ui/chameleon_ui.css'; </style>
 
-<script type="text/javascript" src="<?php echo "$CFG->wwwroot/theme/$chameleon_theme/ui/css_query.js" ?>"> </script>
-<script type="text/javascript" src="<?php echo "$CFG->wwwroot/theme/$chameleon_theme/ui/sarissa.js" ?>"> </script>
-<script type="text/javascript" src="<?php echo "$CFG->wwwroot/theme/$chameleon_theme/ui/chameleon_js.php$chameleon_courseparam" ?>"> </script>
+<script type="text/javascript" src="<?php echo "$CFG->themewww/$chameleon_theme/ui/css_query.js" ?>"> </script>
+<script type="text/javascript" src="<?php echo "$CFG->themewww/$chameleon_theme/ui/sarissa.js" ?>"> </script>
+<script type="text/javascript" src="<?php echo "$CFG->themewww/$chameleon_theme/ui/chameleon_js.php$chameleon_courseparam" ?>"> </script>
 
 <?php
     }
index 31ee06eb1af98d669aa7a906eca9e7d76fd9a286..a2f239082ae85f27c362d534ec27efd03c011dca 100644 (file)
@@ -10,7 +10,7 @@
 ?>
 
 <?php echo $loggedinas ?>
-<p align="center"><a href="http://moodle.org" target="_blank"><img src="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/images/moodlelogo.gif" border="0" /></a></p>
+<p align="center"><a href="http://moodle.org" target="_blank"><img src="<?php echo $CFG->themewww .'/'. current_theme() ?>/images/moodlelogo.gif" border="0" /></a></p>
 
 </div>
 </div>
index 2461dfe3b38d5fdec78075560135c58db6fb98b2..321854f0a49857ffaf06daea4874521b820fa4c5 100644 (file)
@@ -4,11 +4,11 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme()   ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme()   ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
-<body background="<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/images/bg.gif"   <?php
+<body background="<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/images/bg.gif"   <?php
     echo " $bodytags";
     if ($focus) {
         echo " onload=\"setfocus()\"";
@@ -25,7 +25,7 @@
 
     <tr>
         <td>
-        <table background="<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/images/headerbg.jpg"   width="100%" height="112"  cellpadding="0" cellspacing="0" border="0">
+        <table background="<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/images/headerbg.jpg"   width="100%" height="112"  cellpadding="0" cellspacing="0" border="0">
 
         <tr>
 
     </tr>
  </table></tr></td>
   </table>
-<?php } else if ($heading) {  // This is what gets printed on any other page with a heading ?>
+<?php } else if ($heading) {  // This is what gets printed on any other page with a heading
+ ?>
 
    <table width="100%"  cellpadding="0" cellspacing="0" border="0">
         <tr>
         <td>
 
-<table background="<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/images/headerbg.jpg"   width="100%" height="112"  cellpadding="0" cellspacing="0" border="0">
+<table background="<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/images/headerbg.jpg"   width="100%" height="112"  cellpadding="0" cellspacing="0" border="0">
         <tr>
         <td valign="top"><?php echo $heading ?></td>
         <td align="right" sty class="headermain"le="padding-right:5px" valign="top" class="headerhomemenu"><?php echo $menu ?></td>
index 7ab4d12bda59447ed2d781b45a22d70dd350254f..2e8efcc4434b986f4bdc9e4ad4594fff745387ed 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
       if ($home) {  // This is what gets printed on the home page only
 ?>
     <div id="header-home" class="clearfix">
-        <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/logo.jpg' /></h1>
+        <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/logo.jpg' /></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     </div>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading 
 ?>
     <div id="header" class="clearfix">
-        <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->httpswwwroot.'/theme/'.current_theme() ?>/logo_small.jpg' /></h1>
+        <h1 class="headermain"><img alt='Moodle' src='<?php echo $CFG->httpsthemewww .'/'. current_theme() ?>/logo_small.jpg' /></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     </div>
 <?php } ?>
@@ -42,4 +42,4 @@
        <hr size="1" noshade="noshade" />
 <?php } ?>
     <!-- END OF HEADER -->
-    <div id="content">
\ No newline at end of file
+    <div id="content">
index 09801b8c6cc14e78098aec31234a1c57e8d60f08..df5a70f6edf0abef39e322d11bed189c31bf6513 100644 (file)
@@ -23,7 +23,7 @@
 
 
     if ($choose and confirm_sesskey()) {
-        if (!is_dir($choose)) {
+        if (!is_dir($CFG->themedir .'/'. $choose)) {
             error("This theme is not installed!");
         }
         if (set_config("theme", $choose)) {
 
         unset($THEME);
 
-        if (!file_exists($CFG->themedir.$theme.'/config.php')) {   // bad folder
+        if (!file_exists($CFG->themedir.'/'.$theme.'/config.php')) {   // bad folder
             continue;
         }
 
-        include($CFG->themedir.$theme.'/config.php');
+        include($CFG->themedir.'/'.$theme.'/config.php');
 
         $readme = '';
         $screenshot = '';
 
         if (file_exists("$theme/README.html")) {
             $readme =  '<li>'.
-            link_to_popup_window('/theme/'.$theme.'/README.html', $theme, $strinfo, 400, 500, '', 'none', true).'</li>';
+            link_to_popup_window($CFG->themewww .'/'. $theme .'/README.html', $theme, $strinfo, 400, 500, '', 'none', true).'</li>';
         } else if (file_exists("$theme/README.txt")) {
             $readme =  '<li>'.
-            link_to_popup_window('/theme/'.$theme.'/README.txt', $theme, $strinfo, 400, 500, '', 'none', true).'</li>';
+            link_to_popup_window($CFG->themewww .'/'. $theme .'/README.txt', $theme, $strinfo, 400, 500, '', 'none', true).'</li>';
         }
         if (file_exists("$theme/screenshot.png")) {
             $screenshotpath = "$theme/screenshot.png";
index 7a0023c4be4689b4b7d04856ed9ecdc693dd9db9..292c09f6cb9fa8e158c7364785a04913cde2ef7a 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
index 637f22b2e709dcdc4bc72273b194e59e9567c036..a6716ce4a0fcdb0e8110a4f91d039800440bfb70 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
index aebd7d7d8632eb4558634a6cbabb7db3d4ff8700..85c5518fd2c65b38b4b3f8430db4f8e9d4df01aa 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
@@ -41,4 +41,4 @@
     </div>
 <?php } ?>
     <!-- END OF HEADER -->
-<div id="content">
\ No newline at end of file
+<div id="content">
index 89d94d0817756471debe587d993b354974f954fa..85c5518fd2c65b38b4b3f8430db4f8e9d4df01aa 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
index dbd44096efc454a01f126fb7d8c9a0dd13cbb4d5..2d29504181ce4fd33ec810400b75d9bbeba8d6f0 100644 (file)
@@ -4,7 +4,7 @@
 
     $preview = optional_param('preview','standard',PARAM_FILE); // which theme to show
 
-    if (!file_exists($preview)) {
+    if (!file_exists($CFG->themedir .'/'. $preview)) {
         $preview = 'standard';
     }
 
index 9ad45ffe698b8159b2c76496bd207921e7916dc0..2968d1aa3f2015dbd3f99e76305bb46c437ff194 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
index 7a0023c4be4689b4b7d04856ed9ecdc693dd9db9..292c09f6cb9fa8e158c7364785a04913cde2ef7a 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
index 7a0023c4be4689b4b7d04856ed9ecdc693dd9db9..292c09f6cb9fa8e158c7364785a04913cde2ef7a 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
index df9836c89c367c869eef7cee4c1a97c5db39c1db..14226c71b35dc93c712cecce821a9b75b866f716 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
@@ -35,7 +35,7 @@
               $standardlogo = $CFG->httpswwwroot.'/file.php/1/logo.gif';
           }
       } else {
-          $standardlogo = $CFG->httpswwwroot.'/theme/'.current_theme().'/logo.gif';
+          $standardlogo = $CFG->httpsthemewww .'/'. current_theme().'/logo.gif';
       }
       
       //Accessibility: warning: ALT text will need editing if logo changes. 'headermain' is now H1.
index 7a0023c4be4689b4b7d04856ed9ecdc693dd9db9..292c09f6cb9fa8e158c7364785a04913cde2ef7a 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
index a5351c26b220dce8c40cb1ce5e24a9502abcfdb3..d87f2fde680b6318ce4a7a7936ac92d36eb59d95 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>
 
index 7a0023c4be4689b4b7d04856ed9ecdc693dd9db9..292c09f6cb9fa8e158c7364785a04913cde2ef7a 100644 (file)
@@ -4,7 +4,7 @@
     <?php echo $meta ?>
     <meta name="keywords" content="moodle, <?php echo $title ?> " />
     <title><?php echo $title ?></title>
-    <link rel="shortcut icon" href="<?php echo $CFG->wwwroot.'/theme/'.current_theme() ?>/favicon.ico" />
+    <link rel="shortcut icon" href="<?php echo $CFG->themewww .'/'. current_theme() ?>/favicon.ico" />
     <?php include("$CFG->javascript"); ?>
 </head>