mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-15 03:35:20 +00:00
MWException -> Exception
Change-Id: If111014ef2d7aea5c72bdcf4600a9067e2e21e00
This commit is contained in:
parent
b4ccbab8a4
commit
23dcce746a
|
@ -3,7 +3,7 @@
|
|||
namespace TextExtracts;
|
||||
use Config;
|
||||
use HtmlFormatter;
|
||||
use MWException;
|
||||
use Exception;
|
||||
|
||||
/**
|
||||
* Provides text-only or limited-HTML extracts of page HTML
|
||||
|
@ -103,7 +103,7 @@ class ExtractFormatter extends HtmlFormatter {
|
|||
$text = trim( $matches[0] );
|
||||
} else {
|
||||
if ( $res === false ) {
|
||||
throw new MWException( __METHOD__ . "() error compiling regular expression $regexp" );
|
||||
throw new Exception( __METHOD__ . "() error compiling regular expression $regexp" );
|
||||
}
|
||||
// Just return the first line
|
||||
$lines = explode( "\n", $text );
|
||||
|
|
|
@ -39,4 +39,4 @@ class Hooks {
|
|||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue