Index: lib.php
===================================================================
RCS file: /cvsroot/moodle/contrib/patches/hsuforum/mod/forum/lib.php,v
retrieving revision 1.1
diff -c -w -r1.1 lib.php
*** lib.php     26 Feb 2008 18:55:49 -0000      1.1
--- lib.php     29 Aug 2008 13:02:28 -0000
***************
*** 3872,3877 ****
--- 3872,3881 ----
      //Check to see if the user has specified expandable forum view.
      //If so, use js to write tags for the the expand all collapse all links
      //That way if js is disabled they won't show up
+
+     // Don't print links if we're on the front page
+     if ($course->id != SITEID) {
+
      if ($expandable = get_user_preferences('forumview',0)) {
          require_js(array('yui_yahoo', 'yui_event', 'yui_treeview'));
          echo '<script type="text/javascript">'."\n";
***************
*** 3882,3887 ****
--- 3886,3892 ----
          echo 'document.write("</div>");'."\n";
          echo '</script>'."\n";
      }
+     }

      if ($displayformat == 'header') {
          echo '<table cellspacing="0" class="forumheaderlist">';
