From 75c6477eb08a81744e28e30c8efb64a604360d0e Mon Sep 17 00:00:00 2001 From: Richard Rutter Date: Thu, 27 Feb 2014 23:36:16 +0000 Subject: [PATCH] correct camel case of GitHub --- includes/footer.inc.php | 2 +- toc.php | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/includes/footer.inc.php b/includes/footer.inc.php index 7e3f3ed..2fadd0d 100644 --- a/includes/footer.inc.php +++ b/includes/footer.inc.php @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/toc.php b/toc.php index b0ee4b3..c35ffcd 100644 --- a/toc.php +++ b/toc.php @@ -29,18 +29,19 @@ OL {list-style:none}
  1. Front cover
  2. Introduction
  3. - + $chapter) { echo "
  4. $chapter_num

    ".htmlentities($chapter)."

    \n
      \n"; foreach($sections as $section_num => $section) { - $section_chapter = explode("." , $section_num)[0]; + $section_chapter_ar = explode("." , $section_num); + $section_chapter = $section_chapter_ar[0]; if($section_chapter == $chapter_num) { echo "
    1. $section_num

      ".htmlentities($section)."

      \n
        \n"; foreach($items as $item_num => $item) { $item_ar = explode("." , $item_num); - $item_section = $item_ar[0] . "." . $item_ar[1]; + $item_section = $item_ar[0] . "." . $item_ar[1]; if($item_section == $section_num) { echo "
      1. $item_num ".preventOrphans($item)."
      2. \n"; } @@ -51,7 +52,7 @@ foreach($chapters as $chapter_num => $chapter) { echo "
      \n
    2. \n"; } ?> - +
    3. Reference

      1. Bibliography
      2. @@ -70,4 +71,4 @@ foreach($chapters as $chapter_num => $chapter) { - \ No newline at end of file +