Skip to content

Commit

Permalink
Merge branch 'MDL-36109-master' of git://github.com/danpoltawski/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Nov 11, 2015
2 parents fdca1a1 + 3a72303 commit 84f7633
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions install/stringnames.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ langdownloaderror,install
language,moodle
memorylimithelp,install
missingrequiredfield,error
moodlelogo,moodle
next,moodle
parentlanguage,langconfig
pathserrcreatedataroot,install
Expand Down
1 change: 1 addition & 0 deletions lang/en/moodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -1171,6 +1171,7 @@
$string['missingurl'] = 'Missing URL';
$string['missingusername'] = 'Missing username';
$string['moddoesnotsupporttype'] = 'Module {$a->modname} does not support uploads of type {$a->type}';
$string['moodlelogo'] = 'Moodle logo';
$string['month'] = 'Month';
$string['months'] = 'Months';
$string['modified'] = 'Modified';
Expand Down
2 changes: 1 addition & 1 deletion lib/installlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ function install_print_footer($config, $reload=false) {

$homelink = '<div class="sitelink">'.
'<a title="Moodle '. $CFG->target_release .'" href="http://docs.moodle.org/en/Administrator_documentation" onclick="this.target=\'_blank\'">'.
'<img src="pix/moodlelogo.png" alt="moodlelogo" /></a></div>';
'<img src="pix/moodlelogo.png" alt="'.get_string('moodlelogo').'" /></a></div>';

echo '</form></div>';
echo '<div id="page-footer">'.$homelink.'</div>';
Expand Down
4 changes: 2 additions & 2 deletions lib/outputrenderers.php
Original file line number Diff line number Diff line change
Expand Up @@ -830,13 +830,13 @@ public function home_link() {
// Special case for site home page - please do not remove
return '<div class="sitelink">' .
'<a title="Moodle" href="http://moodle.org/">' .
'<img src="' . $this->pix_url('moodlelogo') . '" alt="moodlelogo" /></a></div>';
'<img src="' . $this->pix_url('moodlelogo') . '" alt="'.get_string('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 src="' . $this->pix_url('moodlelogo') . '" alt="moodlelogo" /></a></div>';
'<img src="' . $this->pix_url('moodlelogo') . '" alt="'.get_string('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 . '/">' .
Expand Down

0 comments on commit 84f7633

Please sign in to comment.