Paladox has uploaded a new change for review.
https://gerrit.wikimedia.org/r/249870
Change subject: Fix in_array error
......................................................................
Fix in_array error
This allows us to run the web updater without it causing the whole sql to
be stoped.
Shows this error at the top
<br />
<b>Warning</b>: array_map() [<a
href='function.array-map'>function.array-map</a>]: Argument #2 should be
an array in
<b>/home/paladox1/public_html/extensions/Math/MathRenderer.php</b> on line
<b>652</b><br />
<br />
<b>Warning</b>: array_map() [<a
href='function.array-map'>function.array-map</a>]: Argument #2 should be
an array in
<b>/home/paladox1/public_html/extensions/Math/MathRenderer.php</b> on line
<b>652</b><br />
But allows the sql to be run without error for rest.
Change-Id: Ie7ff3caab51c965d457dee17de7285acbdd91245
---
M Math.hooks.php
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Math
refs/changes/70/249870/1
diff --git a/Math.hooks.php b/Math.hooks.php
index 657bf76..a513fb2 100644
--- a/Math.hooks.php
+++ b/Math.hooks.php
@@ -302,7 +302,7 @@
}
$sql = __DIR__ . '/db/math.' . $type . '.sql';
$updater->addExtensionTable( 'math', $sql );
- if ( in_array( 'latexml', MathRenderer::getValidModes() ) ) {
+ if ( in_array( 'latexml', array( MathRenderer::getValidModes()
) ) ) {
if ( in_array( $type, array( 'mysql', 'sqlite',
'postgres' ) ) ) {
$sql = __DIR__ . '/db/mathlatexml.' . $type .
'.sql';
$updater->addExtensionTable( 'mathlatexml',
$sql );
@@ -314,7 +314,7 @@
throw new Exception( "Math extension does not
currently support $type database for LaTeXML." );
}
}
- if ( in_array( 'mathml', MathRenderer::getValidModes() ) ) {
+ if ( in_array( 'mathml', array( MathRenderer::getValidModes() )
) ) {
if ( in_array( $type, array( 'mysql', 'sqlite',
'postgres' ) ) ) {
$sql = __DIR__ . '/db/mathoid.' . $type .
'.sql';
$updater->addExtensionTable( 'mathoid', $sql );
--
To view, visit https://gerrit.wikimedia.org/r/249870
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie7ff3caab51c965d457dee17de7285acbdd91245
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Math
Gerrit-Branch: master
Gerrit-Owner: Paladox <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits