Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv22762/lib
Modified Files:
pageinfo.php
Log Message:
Fix SF Bug #473499: Diff from page history always diffs HomePage when
USE_PATH_INFO is false. (Patch from Steven Murdoch.)
Index: pageinfo.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/pageinfo.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** pageinfo.php 2001/09/18 19:16:23 1.11
--- pageinfo.php 2001/10/29 18:24:26 1.12
***************
*** 68,76 ****
$table = ("\n"
! . Element('table', join("\n", $rows)) . "\n"
! . Element('input', array('type' => 'hidden',
! 'name' => 'action',
! 'value' => 'diff')) . "\n"
! . Element('input', array('type' => 'submit', 'value' => 'Run Diff')) . "\n");
$formargs['action'] = USE_PATH_INFO ? WikiURL($pagename) : SCRIPT_NAME;
--- 68,79 ----
$table = ("\n"
! . Element('table', join("\n", $rows)) . "\n"
! . Element('input', array('type' => 'hidden',
! 'name' => 'action',
! 'value' => 'diff')) . "\n"
! . Element('input', array('type' => 'hidden',
! 'name' => 'pagename',
! 'value' => $pagename)) . "\n"
! . Element('input', array('type' => 'submit', 'value' => 'Run Diff')) . "\n");
$formargs['action'] = USE_PATH_INFO ? WikiURL($pagename) : SCRIPT_NAME;
|