cvs: phpweb /reST index.php
| From: | Hannes Magnusson | Date: | Wed, 21 Nov 2007 10:45:52 +0000 |
| Subject: | cvs: phpweb /reST index.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-530@lists.php.net to get a copy of this message | ||
bjori Wed Nov 21 10:45:52 2007 UTC
Modified files:
/phpweb/reST index.php
Log:
We need to set the BASE_HREF for the note system to work correctly
http://cvs.php.net/viewvc.cgi/phpweb/reST/index.php?r1=1.1&r2=1.2&diff_format=u
Index: phpweb/reST/index.php
diff -u phpweb/reST/index.php:1.1 phpweb/reST/index.php:1.2
--- phpweb/reST/index.php:1.1 Tue Nov 20 22:10:00 2007
+++ phpweb/reST/index.php Wed Nov 21 10:45:52 2007
@@ -1,5 +1,5 @@
<?php
-// $Id: index.php,v 1.1 2007/11/20 22:10:00 bjori Exp $
+// $Id: index.php,v 1.2 2007/11/21 10:45:52 bjori Exp $
$_SERVER['BASE_PAGE'] = 'reST/index.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
@@ -11,6 +11,7 @@
// Set "this pages ID" (for the notes system)
$PGI["this"] = array("reST/" . ($path ? $path : "index.php"),
"");
+$_SERVER['BASE_HREF'] = $MYSITE . $_SERVER['BASE_PAGE'];
$SIDEBAR_DATA = '<h3>File list</h3>