]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20204 fixed moodle logo link on frontpage
authorPetr Skoda <skodak@moodle.org>
Mon, 4 Jan 2010 23:55:09 +0000 (23:55 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 4 Jan 2010 23:55:09 +0000 (23:55 +0000)
lib/outputrenderers.php

index 619948f392fac547ed94d1b9512f467ad54ee166..7f9e2606d24dbb0b836c7abb83d874591996ec73 100644 (file)
@@ -560,13 +560,13 @@ class core_renderer extends renderer_base {
             // Special case for site home page - please do not remove
             return '<div class="sitelink">' .
                    '<a title="Moodle" href="http://moodle.org/">' .
-                   '<img style="width:100px;height:30px" src="' . $CFG->httpswwwroot . '/pix/moodlelogo.gif" alt="moodlelogo" /></a></div>';
+                   '<img style="width:100px;height:30px" src="' . $this->pix_url('moodlelogo') . '" alt="moodlelogo" /></a></div>';
 
         } else if (!empty($CFG->target_release) && $CFG->target_release != $CFG->release) {
             // Special case for during install/upgrade.
             return '<div class="sitelink">'.
                    '<a title="Moodle" href="http://docs.moodle.org/en/Administrator_documentation" onclick="this.target=\'_blank\'">' .
-                   '<img style="width:100px;height:30px" src="' . $CFG->httpswwwroot . '/pix/moodlelogo.gif" alt="moodlelogo" /></a></div>';
+                   '<img style="width:100px;height:30px" src="' . $this->pix_url('moodlelogo') . '" alt="moodlelogo" /></a></div>';
 
         } else if ($this->page->course->id == $SITE->id || strpos($this->page->pagetype, 'course-view') === 0) {
             return '<div class="homelink"><a href="' . $CFG->wwwroot . '/">' .