diff options
| author | spiderr <spider@viovio.com> | 2012-02-10 11:02:57 -0500 |
|---|---|---|
| committer | spiderr <spider@viovio.com> | 2012-02-10 11:02:57 -0500 |
| commit | 29e30aa81db52bbe54343d1635417196e51d0d19 (patch) | |
| tree | 57091097fa108825fc14a285d3ac641bacdf2243 | |
| parent | d319077664fa4e8a35d6165667bd177a190282e9 (diff) | |
| download | wiki-29e30aa81db52bbe54343d1635417196e51d0d19.tar.gz wiki-29e30aa81db52bbe54343d1635417196e51d0d19.tar.bz2 wiki-29e30aa81db52bbe54343d1635417196e51d0d19.zip | |
use HttpStatusCodes in ::fatalError call
| -rw-r--r-- | display_bitpage_inc.php | 3 | ||||
| -rw-r--r-- | print_multi_pages.php | 3 | ||||
| -rwxr-xr-x | slideshow.php | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/display_bitpage_inc.php b/display_bitpage_inc.php index 05b2a62..bdc0036 100644 --- a/display_bitpage_inc.php +++ b/display_bitpage_inc.php @@ -21,8 +21,7 @@ $gContent->verifyViewPermission(); // Check permissions to access this page if( !$gContent->isValid() ) { - $gBitSystem->setHttpStatus( 404 ); - $gBitSystem->fatalError( tra( 'Page cannot be found' )); + $gBitSystem->fatalError( tra( 'Page cannot be found' ), NULL, NULL, HttpStatusCodes::HTTP_NOT_FOUND ); } $displayHash = array( 'perm_name' => 'p_wiki_view_page' ); diff --git a/print_multi_pages.php b/print_multi_pages.php index dff4d27..7aab2ee 100644 --- a/print_multi_pages.php +++ b/print_multi_pages.php @@ -19,8 +19,7 @@ require_once( WIKI_PKG_PATH.'BitPage.php' ); $gBitSystem->verifyFeature( 'wiki_multiprint' ); if (!isset($_REQUEST["printpages"])) { - $gBitSystem->setHttpStatus( 404 ); - $gBitSystem->fatalError( tra( "No pages indicated" ) ); + $gBitSystem->fatalError( tra( "No pages indicated" ), NULL, NULL, HttpStatusCodes::HTTP_NOT_FOUND ); } else { $printpages = unserialize(urldecode($_REQUEST["printpages"])); } diff --git a/slideshow.php b/slideshow.php index 50b0930..deac9b6 100755 --- a/slideshow.php +++ b/slideshow.php @@ -28,8 +28,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")); + $gBitSystem->fatalError( tra("Page cannot be found"), NULL, NULL, HttpStatusCodes::HTTP_NOT_FOUND ); } // Now check permissions to access this page |
