From: Carsten K. <car...@us...> - 2001-12-22 02:39:34
|
Update of /cvsroot/phpwiki/phpwiki/lib In directory usw-pr-cvs1:/tmp/cvs-serv11764/phpwiki/lib Modified Files: savepage.php Log Message: Added a check whether $SignatureImg is defined, to determine whether or not to show the "Thank you for editing..." page. By default the $SignatureImg is still commented out in index.php (i.e. no "Thank you" page). Index: savepage.php =================================================================== RCS file: /cvsroot/phpwiki/phpwiki/lib/savepage.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -r1.17 -r1.18 *** savepage.php 2001/11/14 21:05:38 1.17 --- savepage.php 2001/12/22 02:39:32 1.18 *************** *** 143,151 **** $warnings = $dbi->GenericWarnings(); if (empty($warnings)) { ! // Do redirect to browse page. ! // In this case, the user will most likely not see the rest of ! // the HTML we generate (below). ! $request->redirect(WikiURL($pagename, false, 'absolute_url')); } --- 143,154 ---- $warnings = $dbi->GenericWarnings(); + global $SignatureImg; if (empty($warnings)) { ! if (empty($SignatureImg)){ ! // Do redirect to browse page if no signature has been defined. ! // In this case, the user will most likely not see the rest of ! // the HTML we generate (below). ! $request->redirect(WikiURL($pagename, false, 'absolute_url')); ! } } *************** *** 162,166 **** } - global $SignatureImg; if (!empty($SignatureImg)) $html .= sprintf("<P><img src=\"%s\"></P>\n", DataURL($SignatureImg)); --- 165,168 ---- |