<?php
/**
+ * Resource loader module for user tokens.
+ *
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
global $wgUser;
return array(
- 'editToken' => $wgUser->edittoken(),
- 'watchToken' => ApiQueryInfo::getWatchToken(null, null),
+ 'editToken' => $wgUser->getEditToken(),
+ 'patrolToken' => ApiQueryRecentChanges::getPatrolToken( null, null ),
+ 'watchToken' => ApiQueryInfo::getWatchToken( null, null ),
);
}
}
/**
- * @return string
+ * @return bool
*/
- public function getGroup() {
- return 'private';
+ public function supportsURLLoading() {
+ return false;
}
/**
- * @return array
+ * @return string
*/
- public function getDependencies() {
- return array( 'mediawiki.user' );
+ public function getGroup() {
+ return 'private';
}
}