cvs: php-gtk-web /include shared-manual.inc
[email protected] ("Steph Fox") Tue, 11 Jul 2006 08:10:17 -0000
| Newsgroups | php.gtk.webmaster |
|---|---|
| Message-ID | <cvssfox1152605417@cvsserver> |
sfox Tue Jul 11 08:10:17 2006 UTC
Modified files:
/php-gtk-web/include shared-manual.inc
Log:
forgot to commit the bit that makes add-note work...
http://cvs.php.net/viewvc.cgi/php-gtk-web/include/shared-manual.inc?r1=1.73&r2=1.74&diff_format=u
Index: php-gtk-web/include/shared-manual.inc
diff -u php-gtk-web/include/shared-manual.inc:1.73 php-gtk-web/include/shared-manual.inc:1.74
--- php-gtk-web/include/shared-manual.inc:1.73 Sun Jul 9 18:48:40 2006
+++ php-gtk-web/include/shared-manual.inc Tue Jul 11 08:10:16 2006
@@ -302,13 +302,14 @@
echo '<table border="0" cellpadding="4" cellspacing="0" width="100%">';
$notes = manualGetUserNotes($id);
+ $ref = isset($_SERVER['HTTP_REFERER']) ? null : "?ref={$_SERVER['PHP_SELF']}";
echo '<tr bgcolor="#d0d0d0" valign="top">';
echo '<td><small>User Contributed Notes<br /></small><b>' . $id . '</b><br /></td>';
echo '<td align="right">';
- print_link($toplevel.'/add-note.php', make_image('notes-add.gif','add a note'));
+ print_link($toplevel.'/add-note.php'.$ref, make_image('notes-add.gif','add a note'));
echo " ";
- print_link($toplevel.'/about-notes.php', make_image('notes-about.gif', 'about notes'));
+ print_link($toplevel.'/about-notes.php'.$ref, make_image('notes-about.gif', 'about notes'));
echo "<br /></td>\n";
echo "</tr>\n";
@@ -327,9 +328,9 @@
echo "<tr bgcolor=\"#d0d0d0\" valign=\"top\">\n";
echo "<td colspan=\"2\" align=\"right\">\n";
- print_link($toplevel.'/add-note.php', make_image('notes-add.gif','add a note'));
+ print_link($toplevel.'/add-note.php'.$ref, make_image('notes-add.gif','add a note'));
echo " ";
- print_link($toplevel.'/about-notes.php', make_image('notes-about.gif', 'about notes'));
+ print_link($toplevel.'/about-notes.php'.$ref, make_image('notes-about.gif', 'about notes'));
echo "<br /></td>\n";
echo "</tr>\n";
}