mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-09-23 18:30:54 +00:00
MWException -> Exception
Change-Id: Icd77d1168c007b2d101bfd7e458a7bf1a794e2cb
This commit is contained in:
parent
63d2f0f1c4
commit
3f33253077
|
@ -14,14 +14,14 @@ class RelatedArticles {
|
|||
}
|
||||
|
||||
/**
|
||||
* @throws MWException
|
||||
* @throws Exception
|
||||
* @return CustomData
|
||||
*/
|
||||
public function getCustomData() {
|
||||
global $wgCustomData;
|
||||
|
||||
if ( !$wgCustomData instanceof CustomData ) {
|
||||
throw new MWException( 'CustomData extension is not properly installed.' );
|
||||
throw new Exception( 'CustomData extension is not properly installed.' );
|
||||
}
|
||||
|
||||
return $wgCustomData;
|
||||
|
|
Loading…
Reference in a new issue