mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
fix the file references now that they are comming from git instead of svn for the reST stuff
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user