MDL-54934 workshop: ensure "Current phase" is always separated
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 6 Jul 2016 09:30:40 +0000 (11:30 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 6 Jul 2016 09:30:40 +0000 (11:30 +0200)
Apparently some readers can join 2 adjacent spans completely, simply
adding a whitespace between them prevents that, ensuring separation.,

mod/workshop/renderer.php

index 3288657..58cfa6a 100644 (file)
@@ -290,7 +290,7 @@ class mod_workshop_renderer extends plugin_renderer_base {
         foreach ($plan->phases as $phasecode => $phase) {
             $title = html_writer::tag('span', $phase->title);
             if ($phase->active) {
-                $title .= html_writer::tag('span', get_string('userplancurrentphase', 'workshop'),
+                $title .= ' ' . html_writer::tag('span', get_string('userplancurrentphase', 'workshop'),
                     array('class' => 'accesshide'));
             }
             $actions = '';