diff options
| author | Christian Fowler <spider@viovio.com> | 2008-05-02 15:44:45 +0000 |
|---|---|---|
| committer | Christian Fowler <spider@viovio.com> | 2008-05-02 15:44:45 +0000 |
| commit | 7a8dae806d2d8faccbc99388e71f655a57be12cd (patch) | |
| tree | 3ce0c5e6ce8b80b1e3b286262a569a7aa5792bec | |
| parent | 778bad3c94e26825cd3168706d87bb9581ce2065 (diff) | |
| download | wiki-7a8dae806d2d8faccbc99388e71f655a57be12cd.tar.gz wiki-7a8dae806d2d8faccbc99388e71f655a57be12cd.tar.bz2 wiki-7a8dae806d2d8faccbc99388e71f655a57be12cd.zip | |
add setHttpStatus( 404 ) to fatalErrorR202
| -rw-r--r-- | print_multi_pages.php | 9 | ||||
| -rwxr-xr-x | slideshow.php | 5 |
2 files changed, 7 insertions, 7 deletions
diff --git a/print_multi_pages.php b/print_multi_pages.php index 39ec42a..c9d3d2d 100644 --- a/print_multi_pages.php +++ b/print_multi_pages.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/print_multi_pages.php,v 1.9 2007/09/14 17:07:20 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/print_multi_pages.php,v 1.10 2008/05/02 15:44:45 spiderr Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: print_multi_pages.php,v 1.9 2007/09/14 17:07:20 spiderr Exp $ + * $Id: print_multi_pages.php,v 1.10 2008/05/02 15:44:45 spiderr Exp $ * @package wiki * @subpackage functions */ @@ -22,9 +22,8 @@ require_once( WIKI_PKG_PATH.'BitPage.php' ); $gBitSystem->verifyFeature( 'wiki_multiprint' ); if (!isset($_REQUEST["printpages"])) { - $gBitSmarty->assign('msg', tra("No pages indicated")); - $gBitSystem->display( 'error.tpl' ); - die; + $gBitSystem->setHttpStatus( 404 ); + $gBitSystem->fatalError( tra( "No pages indicated" ) ); } else { $printpages = unserialize(urldecode($_REQUEST["printpages"])); } diff --git a/slideshow.php b/slideshow.php index 7b469e6..71e540e 100755 --- a/slideshow.php +++ b/slideshow.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/slideshow.php,v 1.19 2007/09/14 17:07:20 spiderr Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/slideshow.php,v 1.20 2008/05/02 15:44:45 spiderr Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: slideshow.php,v 1.19 2007/09/14 17:07:20 spiderr Exp $ + * $Id: slideshow.php,v 1.20 2008/05/02 15:44:45 spiderr Exp $ * @package wiki * @subpackage functions */ @@ -31,6 +31,7 @@ if (!isset($_SESSION["thedate"])) { require_once ( WIKI_PKG_PATH.'lookup_page_inc.php' ); // If the page doesn't exist then display an error if (!$gContent->isValid()) { + $gBitSystem->setHttpStatus( 404 ); $gBitSystem->fatalError(tra("Page cannot be found")); } |
