com web/php: fix the file references now that they are comming from git instead of svn for the reST stuff: get-involved.php mailing-lists.php
reST/index.php
| From: | Ferenc Kovacs | Date: | Sat, 21 Jul 2012 00:30:09 +0000 |
| Subject: | com web/php: fix the file references now that they are comming from git instead of svn for the reST stuff: get-involved.php mailing-lists.php reST/index.php |
||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13979@lists.php.net to get a copy of this message | ||
Commit: 0056617265d628e250c52b95b99df90bcd0f00bc
Author: Ferenc Kovacs <tyra3l@gmail.com> Sat, 21 Jul 2012 02:30:09 +0200
Parents: 0b9dcb33bd18033b7dea025c5be99f93d6a72051
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=0056617265d628e250c52b95b99df90bcd0f00bc
Log:
fix the file references now that they are comming from git instead of svn for the reST stuff
Changed paths:
M get-involved.php
M mailing-lists.php
M reST/index.php
Diff:
diff --git a/get-involved.php b/get-involved.php
index d006365..ddca2d0 100644
--- a/get-involved.php
+++ b/get-involved.php
@@ -244,7 +244,7 @@ directory if you want to learn more about the testing mechanism.
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>
diff --git a/mailing-lists.php b/mailing-lists.php
index ae9fe25..816e7e2 100644
--- a/mailing-lists.php
+++ b/mailing-lists.php
@@ -167,7 +167,7 @@ if (isset($_POST['maillist'])) {
</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
diff --git a/reST/index.php b/reST/index.php
index 8e4f7dd..2c9e046 100644
--- a/reST/index.php
+++ b/reST/index.php
@@ -19,24 +19,12 @@ $SIDEBAR_DATA = '<h3>File list</h3>
$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) {