Permalink
Browse files

fix the file references now that they are comming from git instead of…

… svn for the reST stuff
  • Loading branch information...
1 parent 0b9dcb3 commit 0056617265d628e250c52b95b99df90bcd0f00bc @Tyrael Tyrael committed Jul 21, 2012
Showing with 5 additions and 17 deletions.
  1. +1 −1 get-involved.php
  2. +1 −1 mailing-lists.php
  3. +3 −15 reST/index.php
View
@@ -244,7 +244,7 @@ functionality with extensions, and so on.
something to add. Please take a few moments to familiarize yourself with the
mailing list "rules" before you go all crazy on the lists. For the rules that
are generally followed on all PHP mailing lists, please see the
- <a href="http://php.net/reST/php-src/trunk_README.MAILINGLIST_RULES">Mailinglist Rules</a>.
+ <a href="http://php.net/reST/README.MAILINGLIST_RULES">Mailinglist Rules</a>.
</p>
View
@@ -167,7 +167,7 @@
</ul>
<p>
And make sure you have read our
- <a href="/reST/php-src/trunk_README.MAILINGLIST_RULES">Mailinglist Rules</a>.
+ <a href="/reST/README.MAILINGLIST_RULES">Mailinglist Rules</a>.
</p>
<?php
View
@@ -19,24 +19,12 @@
$restfiles = glob($rest_dir. "/*");
-$list = $lastdir = "";
+//$list = $lastdir = "";
+$list = "";
foreach($restfiles as $filename) {
$link = basename($filename, ".rest");
- // Separate the dirname from the filename
- list($dir, $filename) = explode("_", $link, 2);
-
- // Create a tree-like-structure
- if ($dir != $lastdir) {
- if ($lastdir) {
- $list .= "</ul>\n";
- }
- $list .= "<li><h4>$dir</h4><li>\n<ul class=\"simple\">\n";
- $lastdir = $dir;
- }
-
- // Replace the first - with a directory seperator
- $link[strpos($link, "_")] = "/";
+ $filename = basename($link);
// Only use the "last part" of the filename (i.e. README.FOOBAR => FOOBAR)
if (strpos($filename, ".") !== false) {

0 comments on commit 0056617

Please sign in to comment.