Merge branch 'MDL-33121' of git://github.com/rwijaya/moodle
authorDan Poltawski <dan@moodle.com>
Tue, 19 Jun 2012 06:14:54 +0000 (14:14 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 19 Jun 2012 06:14:54 +0000 (14:14 +0800)
1  2 
mod/book/locallib.php
mod/book/tool/exportimscp/version.php
mod/book/tool/importhtml/locallib.php
mod/book/tool/importhtml/version.php
mod/book/tool/print/version.php
mod/book/version.php

@@@ -268,13 -254,9 +254,13 @@@ function book_get_toc($chapters, $chapt
                      }
                  } else {
                      if ($book->numbering == BOOK_NUM_NUMBERS) {
 -                        $title = "x.x $title";
 +                        if (empty($chapters[$ch->parent]->hidden)) {
 +                            $title = "$nch.x $title";
 +                        } else {
 +                            $title = "x.x $title";
 +                        }
                      }
-                     $title = '<span class="dimmed_text">'.$title.'</span>';
+                     $title = html_writer::tag('span', $title, array('class' => 'dimmed_text'));
                  }
              }
  
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge