diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-05-03 13:01:35 +0200 |
commit | d9022f63880ce039446fba8364f68e656b7bf4cb (patch) | |
tree | 16b40fbf17bf7c9ee6f4ead25b16dd192378050a /includes/Metadata.php | |
parent | 27cf83d177256813e2e802241085fce5dd0f3fb9 (diff) |
Update to MediaWiki 1.19.0
Diffstat (limited to 'includes/Metadata.php')
-rw-r--r-- | includes/Metadata.php | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/includes/Metadata.php b/includes/Metadata.php index 2e4ab94c..e5e3296b 100644 --- a/includes/Metadata.php +++ b/includes/Metadata.php @@ -41,14 +41,13 @@ abstract class RdfMetaData { $rdftype = wfNegotiateType( wfAcceptToPrefs( $httpaccept ), wfAcceptToPrefs( self::RDF_TYPE_PREFS ) ); if( !$rdftype ){ - wfHttpError( 406, 'Not Acceptable', wfMsg( 'notacceptable' ) ); - return false; - } else { - $wgOut->disable(); - $wgRequest->response()->header( "Content-type: {$rdftype}; charset=utf-8" ); - $wgOut->sendCacheControl(); - return true; + throw new HttpError( 406, wfMessage( 'notacceptable' ) ); } + + $wgOut->disable(); + $wgRequest->response()->header( "Content-type: {$rdftype}; charset=utf-8" ); + $wgOut->sendCacheControl(); + return true; } protected function reallyFullUrl() { |