*/
public function getRedactedName() {
if ( $this->mAuto ) {
- return HTML::rawElement(
+ return Html::rawElement(
'span',
array( 'class' => 'mw-autoblockid' ),
wfMessage( 'autoblockid', $this->mId )
* of success. If it fails, the result will specify the nature of the error.
*/
public function execute() {
- global $wgUser, $wgBlockAllowsUTEdit;
+ global $wgUser;
$params = $this->extractRequestParams();
if ( $params['gettoken'] ) {
if ( $fld_description ) {
$file['description'] = $row->fa_description;
if ( isset( $prop['parseddescription'] ) ) {
- global $wgUser;
$file['parseddescription'] = $wgUser->getSkin()->formatComment(
$row->fa_description, $row->fa_name );
}
* Constructor, always call this from child classes.
*/
public function __construct() {
- global $wgExtensionMessagesFiles, $wgUser, $wgHooks;
+ global $wgExtensionMessagesFiles, $wgUser;
// Disable the i18n cache and LoadBalancer
Language::getLocalisationCache()->disableBackend();
* @param $par String title fragment
*/
public function execute( $par ) {
- global $wgUser, $wgOut, $wgRequest;
+ global $wgOut, $wgRequest;
$this->setHeaders();
$this->outputHeader();
}
function getFieldNames() {
- global $wgUser;
static $headers = null;
if ( $headers == array() ) {
}
function formatValue( $name, $value ) {
- global $wgOut, $wgLang, $wgUser;
+ global $wgLang, $wgUser;
static $sk, $msg;
if ( empty( $sk ) ) {
unset( $fields['Name'] );
} else {
+ global $wgUser;
+
$fields['Target']['default'] = $target;
$fields['Target']['type'] = 'hidden';
switch( $type ){
case Block::TYPE_USER:
case Block::TYPE_IP:
- global $wgUser;
$skin = $wgUser->getSkin();
$fields['Name']['default'] = $skin->link(
$target->getUserPage(),
return true;
}
-}
\ No newline at end of file
+}