Siebrand has uploaded a new change for review.
https://gerrit.wikimedia.org/r/106208
Change subject: Replace deprecated User::editToken with User::getEditToken
(1.19)
......................................................................
Replace deprecated User::editToken with User::getEditToken (1.19)
Change-Id: I61221beb02b22d30cc41773ab8140c1bdcca9229
---
M LogEntry.hooks.php
1 file changed, 7 insertions(+), 7 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LogEntry
refs/changes/08/106208/1
diff --git a/LogEntry.hooks.php b/LogEntry.hooks.php
index dd9d55a..698560a 100644
--- a/LogEntry.hooks.php
+++ b/LogEntry.hooks.php
@@ -10,24 +10,24 @@
class LogEntryHooks {
/* Functions */
-
+
// Initialization
public static function register( &$parser ) {
// Register the hook with the parser
$parser->setHook( 'logentry', 'LogEntryHooks::render' );
-
+
// Continue
return true;
}
-
+
// Render the entry form
public static function render( $input, $args, &$parser ) {
global $wgUser;
global $egLogEntryMultiLine, $egLogEntryMultiLineRows;
-
+
// Don't cache since we are passing the token in the form
$parser->disableCache();
-
+
// Build HTML
$htmlResult = Xml::openElement( 'form',
array(
@@ -85,11 +85,11 @@
array(
'type' => 'hidden',
'name' => 'token',
- 'value' => $wgUser->editToken()
+ 'value' => $wgUser->getEditToken()
)
);
$htmlResult .= Xml::closeElement( 'form' );
-
+
// Return HTML output
return $htmlResult;
}
--
To view, visit https://gerrit.wikimedia.org/r/106208
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I61221beb02b22d30cc41773ab8140c1bdcca9229
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LogEntry
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits