cvs: php-gtk-web /manual add-note.php

From: Date: Thu, 13 Jul 2006 01:49:03 +0000
Subject: cvs: php-gtk-web /manual add-note.php
Groups: php.gtk.webmaster 
Request: Send a blank email to php-gtk-webmaster+get-3229@lists.php.net to get a copy of this message
sfox Thu Jul 13 01:49:03 2006 UTC Modified files: /php-gtk-web/manual add-note.php Log: die() doesn't have time to call layout functions :-( http://cvs.php.net/viewvc.cgi/php-gtk-web/manual/add-note.php?r1=1.27&r2=1.28&diff_format=u Index: php-gtk-web/manual/add-note.php diff -u php-gtk-web/manual/add-note.php:1.27 php-gtk-web/manual/add-note.php:1.28 --- php-gtk-web/manual/add-note.php:1.27 Thu Jul 13 01:30:28 2006 +++ php-gtk-web/manual/add-note.php Thu Jul 13 01:49:03 2006 @@ -286,6 +286,7 @@ if (strlen($content) > 4096) { print stretchPage(22); print "<p>Your note is too long to fit on the manual pages! Please review it and try to make it less verbose.</p>"; + print "</div>"; commonFooter(); exit; } @@ -293,7 +294,11 @@ /* Pick up id, insert note data into queue and mail out admin notification */ if (!$lastid = file_get_contents($last_id)) { - die("Could not obtain note ID\n\n".commonFooter()); + print stretchPage(22); + print "Could not obtain note ID<br />\n<br />\n"; + print "</div>"; + commonFooter(); + exit; } $id = $lastid + 1; @@ -308,7 +313,11 @@ $result = sqlite_exec($queuedb, "INSERT INTO notes VALUES $db_string"); sqlite_close($queuedb); if (!file_put_contents($last_id, $id)) { - die("New note ID not saved\n\n".commonFooter()); + print stretchPage(22); + print "New note ID not saved<br />\n<br />\n"; + print "</div>"; + commonFooter(); + exit; } $printmsg = "<p>Thank you for contributing! Your note has been queued for processing";

« previous php.gtk.webmaster (#3229) next »