[Commits] [svn:einsteintoolkit] www/documentation/ThornDoc/ (Rev. 1135)

ian.hinder at aei.mpg.de ian.hinder at aei.mpg.de
Thu Mar 13 12:44:37 CDT 2014


User: hinder
Date: 2014/03/13 12:44 PM

Modified:
 /documentation/ThornDoc/
  index.php

Log:
 ThornDoc: Don't create links to documentation for thorns that don't have documentation

File Changes:

Directory: /documentation/ThornDoc/
===================================

File [modified]: index.php
Delta lines: +8 -1
===================================================================
--- documentation/ThornDoc/index.php	2014-03-13 17:39:49 UTC (rev 1134)
+++ documentation/ThornDoc/index.php	2014-03-13 17:44:36 UTC (rev 1135)
@@ -51,7 +51,14 @@
      echo "<ul>";
      foreach($arrangement as $thorn)
      {
-       echo "<li class=\"doclist\"><a href='$name/$thorn/documentation.html'>$thorn</a></li>\n";
+       if (file_exists("$name/$thorn/documentation.html"))
+       {
+         echo "<li class=\"doclist\"><a href='$name/$thorn/documentation.html'>$thorn</a></li>\n";
+       }
+       else
+       {
+         echo "<li class=\"doclist\">$thorn</li>\n";
+       }
      }
      echo "</ul>";
    }



More information about the Commits mailing list