From f7cdcc7bca768170213818be7545f53661c656b6 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Wed, 31 May 2006 01:08:41 +0000 Subject: [PATCH] (bug 4940) $action uninitialised --- includes/Skin.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/Skin.php b/includes/Skin.php index 5246e2a812..5bf36abec4 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -330,7 +330,6 @@ class Skin extends Linker { /** * Some styles that are set by user through the user settings interface. - * @todo undefined variables (bug #4940) */ function doGetUserStyles() { global $wgUser, $wgUser, $wgRequest, $wgTitle, $wgAllowUserCss; @@ -338,8 +337,7 @@ class Skin extends Linker { $s = ''; if( $wgAllowUserCss && $wgUser->isLoggedIn() ) { # logged in - # FIXME: $action undefined, bug #4940 - if($wgTitle->isCssSubpage() && $this->userCanPreview( $action ) ) { + if($wgTitle->isCssSubpage() && $this->userCanPreview( $wgRequest->getText( 'action' ) ) ) { $s .= $wgRequest->getText('wpTextbox1'); } else { $userpage = $wgUser->getUserPage(); -- 2.20.1