Physikerwelt has submitted this change and it was merged. Change subject: MWException -> Exception ......................................................................
MWException -> Exception Change-Id: I18da1baeb70387b96e30811a049185a264dec26d --- M Math.alias.php M Math.hooks.php M MathSource.php M tests/MathCoverageTest.php M tests/MathIdTest.php M tests/MathLaTeXMLTest.php M tests/MathMathMLTest.php M tests/MathRendererTest.php M tests/MathSourceTest.php 9 files changed, 13 insertions(+), 13 deletions(-) Approvals: Physikerwelt: Verified; Looks good to me, approved diff --git a/Math.alias.php b/Math.alias.php index 0613ed6..91de3f5 100644 --- a/Math.alias.php +++ b/Math.alias.php @@ -11,4 +11,4 @@ /** English (English) */ $specialPageAliases['en'] = array( 'MathShowImage' => array( 'MathShowImage', 'MathShowImage' ) // No need to translate! The PageTitle does not appear. -); \ No newline at end of file +); diff --git a/Math.hooks.php b/Math.hooks.php index 213ac8f..54622cd 100644 --- a/Math.hooks.php +++ b/Math.hooks.php @@ -212,13 +212,13 @@ * LoadExtensionSchemaUpdates handler; set up math table on install/upgrade. * * @param $updater DatabaseUpdater - * @throws MWException + * @throws Exception * @return bool */ static function onLoadExtensionSchemaUpdates( $updater = null ) { global $wgMathValidModes; if ( is_null( $updater ) ) { - throw new MWException( 'Math extension is only necessary in 1.18 or above' ); + throw new Exception( 'Math extension is only necessary in 1.18 or above' ); } $map = array( 'mysql', 'sqlite', 'postgres', 'oracle', 'mssql' ); @@ -237,7 +237,7 @@ $updater->modifyExtensionField( 'mathlatexml', 'math_mathml', $sql ); } } else { - throw new MWException( "Math extension does not currently support $type database for LaTeXML." ); + throw new Exception( "Math extension does not currently support $type database for LaTeXML." ); } } if ( in_array( MW_MATH_MATHML, $wgMathValidModes ) ) { @@ -245,11 +245,11 @@ $sql = dirname( __FILE__ ) . '/db/mathoid.' . $type . '.sql'; $updater->addExtensionTable( 'mathoid', $sql ); } else { - throw new MWException( "Math extension does not currently support $type database for Mathoid." ); + throw new Exception( "Math extension does not currently support $type database for Mathoid." ); } } } else { - throw new MWException( "Math extension does not currently support $type database." ); + throw new Exception( "Math extension does not currently support $type database." ); } return true; } diff --git a/MathSource.php b/MathSource.php index 95340ac..77c84cc 100644 --- a/MathSource.php +++ b/MathSource.php @@ -56,7 +56,7 @@ } protected function getMathTableName() { - throw new MWException ( 'in math source mode no database caching should happen'); + throw new Exception ( 'in math source mode no database caching should happen'); } /** diff --git a/tests/MathCoverageTest.php b/tests/MathCoverageTest.php index 71d2422..94af443 100644 --- a/tests/MathCoverageTest.php +++ b/tests/MathCoverageTest.php @@ -87,4 +87,4 @@ private function normalize( $input ) { return preg_replace( '#src="(.*?)/(([a-f]|\d)*).png"#', 'src="\2.png"', $input ); } -} \ No newline at end of file +} diff --git a/tests/MathIdTest.php b/tests/MathIdTest.php index c7c5719..4365c4a 100644 --- a/tests/MathIdTest.php +++ b/tests/MathIdTest.php @@ -14,4 +14,4 @@ $this->assertEquals( RANDOM_ID, $renderer->getId() ); } -} \ No newline at end of file +} diff --git a/tests/MathLaTeXMLTest.php b/tests/MathLaTeXMLTest.php index 5606f97..71f98b9 100644 --- a/tests/MathLaTeXMLTest.php +++ b/tests/MathLaTeXMLTest.php @@ -49,4 +49,4 @@ , "Rendering of a+b in plain Text mode." . $renderer->getLastError() ); } -} \ No newline at end of file +} diff --git a/tests/MathMathMLTest.php b/tests/MathMathMLTest.php index d101c06..e410070 100644 --- a/tests/MathMathMLTest.php +++ b/tests/MathMathMLTest.php @@ -211,4 +211,4 @@ return MathMathMLTest::$html; } -} \ No newline at end of file +} diff --git a/tests/MathRendererTest.php b/tests/MathRendererTest.php index 8d90420..74ea51a 100644 --- a/tests/MathRendererTest.php +++ b/tests/MathRendererTest.php @@ -137,4 +137,4 @@ // so readFromDatabase will be called again $this->assertEquals( $renderer->checkTex(), true ); } -} \ No newline at end of file +} diff --git a/tests/MathSourceTest.php b/tests/MathSourceTest.php index f04708c..8bfe92a 100644 --- a/tests/MathSourceTest.php +++ b/tests/MathSourceTest.php @@ -30,4 +30,4 @@ ); } -} \ No newline at end of file +} -- To view, visit https://gerrit.wikimedia.org/r/184068 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I18da1baeb70387b96e30811a049185a264dec26d Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Math Gerrit-Branch: master Gerrit-Owner: Ori.livneh <o...@wikimedia.org> Gerrit-Reviewer: Physikerwelt <w...@physikerwelt.de> Gerrit-Reviewer: TheDJ <hartman.w...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits