MWException -> Exception

Change-Id: If111014ef2d7aea5c72bdcf4600a9067e2e21e00
This commit is contained in:
Ori Livneh 2015-01-09 19:06:21 -08:00
parent b4ccbab8a4
commit 23dcce746a
2 changed files with 3 additions and 3 deletions

View file

@ -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 );

View file

@ -39,4 +39,4 @@ class Hooks {
}
return true;
}
}
}