Physikerwelt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/65787
Change subject: Fix: Remove file output from parserTest function
......................................................................
Fix: Remove file output from parserTest function
Change-Id: Ibc6ada5caec1a991e3d1896cfb69db2e0d4102cf
---
M SpecialMathDebug.php
1 file changed, 3 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MathSearch
refs/changes/87/65787/1
diff --git a/SpecialMathDebug.php b/SpecialMathDebug.php
index 375221a..96aee93 100644
--- a/SpecialMathDebug.php
+++ b/SpecialMathDebug.php
@@ -40,7 +40,7 @@
}
}
}
- function displayButtons( $offset = 0, $length = 10, $pagaename =
'Testpage', $action = 'show' ) {
+ function displayButtons( $offset = 0, $length = 10, $page = 'Testpage',
$action = 'show' ) {
$out = $this->getOutput();
// TODO check if addHTML has to be sanitized
$out->addHTML( '<form method=\'get\'>'
@@ -51,8 +51,8 @@
. ' test(s) starting from test # <input name="offset"
size="6" value="'
. ( $offset + $length )
. '" class="textfield" onfocus="this.select()"
type="text"> for page'
- . ' <input name="pagename" size="12" value="'
- . $pagaename
+ . ' <input name="page" size="12" value="'
+ . $page
. '" class="textfield" onfocus="this.select()"
type="text">'
. ' <input name="action" size="12" value="'
. $action
@@ -145,7 +145,6 @@
} else {
$tstring = "No math elements found";
}
- file_put_contents( '/home/vagrant/math/mathParserTests2.txt',
$tstring );
$out->addWikiText( '<source>' . $tstring . '<\source>' );
return true;
}
--
To view, visit https://gerrit.wikimedia.org/r/65787
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibc6ada5caec1a991e3d1896cfb69db2e0d4102cf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MathSearch
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits