com web/php: Added online editor links to all manual pages. Let's see if anyone notices. Link location subject to change.: include/shared-manual.inc
| From: | Paul Dragoonis | Date: | Wed, 29 Jun 2011 02:41:41 +0000 |
| Subject: | com web/php: Added online editor links to all manual pages. Let's see if anyone notices. Link location subject to change.: include/shared-manual.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-23525@lists.php.net to get a copy of this message | ||
Commit: a35018444b3788e6e08ad47c2b5a4eb0519d0504
Author: Philip Olson <philip@php.net> Wed, 29 Jun 2011 02:41:41 +0000
Parents: 49b0dfbf1734c17ae2fdabb2367e02ae7b4f219f
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=a35018444b3788e6e08ad47c2b5a4eb0519d0504
Log:
Added online editor links to all manual pages. Let's see if anyone notices. Link location
subject to change.
Changed paths:
M include/shared-manual.inc
Diff:
diff --git a/include/shared-manual.inc b/include/shared-manual.inc
index f84766e..c4a647c 100644
--- a/include/shared-manual.inc
+++ b/include/shared-manual.inc
@@ -254,17 +254,19 @@ function manual_navbar($location = "top")
}
echo " </span>\n <hr />\n";
- // Provide last updated information on this page
- echo " <span class=\"lastupdated\">Last updated:
{$PGI['lastmod']}</span>\n";
+
+ // Quick access to filename
+ $filename = $PGI['this'][0];
+
+ // Provide last updated and online editor information on this page
+ $elink = '[<a href="https://edit.php.net/?project=PHP&perm=/{$PGI['head'][1]}/{$filename}">edit</a>]';
+ echo " <span class=\"lastupdated\">{$elink} Last updated:
{$PGI['lastmod']}</span>\n";
// Print out language switch on top of manual pages
echo " <div class=\"langchooser\">\n";
if ($location != 'bottom') {
$links = array();
-
- // Quick access to filename
- $filename = $PGI['this'][0];
// Disable all languages without online content
// Add a dropdown item for all languages left