MDL-46200 fix missing space in failed login message
authorDan Poltawski <dan@moodle.com>
Fri, 4 Jul 2014 13:48:10 +0000 (14:48 +0100)
committerDan Poltawski <dan@moodle.com>
Fri, 4 Jul 2014 13:49:13 +0000 (14:49 +0100)
lib/outputrenderers.php

index 8b9ef8f..9da96cb 100644 (file)
@@ -705,8 +705,8 @@ class core_renderer extends renderer_base {
                         $a->attempts = $count;
                         $loggedinas .= get_string('failedloginattempts', '', $a);
                         if (file_exists("$CFG->dirroot/report/log/index.php") and has_capability('report/log:view', context_system::instance())) {
                         $a->attempts = $count;
                         $loggedinas .= get_string('failedloginattempts', '', $a);
                         if (file_exists("$CFG->dirroot/report/log/index.php") and has_capability('report/log:view', context_system::instance())) {
-                            $loggedinas .= html_writer::link(new moodle_url('/report/log/index.php', array('chooselog' => 1,
-                                    'id' => 0 , 'modid' => 'site_errors')), '(' . get_string('logs') . ')');
+                            $loggedinas .= ' ('.html_writer::link(new moodle_url('/report/log/index.php', array('chooselog' => 1,
+                                    'id' => 0 , 'modid' => 'site_errors')), get_string('logs')).')';
                         }
                         $loggedinas .= '</div>';
                     }
                         }
                         $loggedinas .= '</div>';
                     }