Index: trunk/phase3/includes/specials/SpecialPreferences.php |
— | — | @@ -893,19 +893,17 @@ |
894 | 894 | $mplink = htmlspecialchars( $mptitle->getLocalURL( "useskin=$skinkey" ) ); |
895 | 895 | $previewlink = "(<a target='_blank' href=\"$mplink\">$previewtext</a>)"; |
896 | 896 | $extraLinks = ''; |
897 | | - if( $skinkey == $this->mSkin ) { |
898 | | - global $wgAllowUserCss, $wgAllowUserJs; |
899 | | - if( $wgAllowUserCss ) { |
900 | | - $cssPage = Title::makeTitleSafe( NS_USER, $wgUser->getName().'/'.$skinkey.'.css' ); |
901 | | - $customCSS = $sk->makeLinkObj( $cssPage, wfMsgExt('prefs-custom-css', array() ) ); |
902 | | - $extraLinks .= " ($customCSS)"; |
903 | | - } |
904 | | - if( $wgAllowUserJs ) { |
905 | | - $jsPage = Title::makeTitleSafe( NS_USER, $wgUser->getName().'/'.$skinkey.'.js' ); |
906 | | - $customJS = $sk->makeLinkObj( $jsPage, wfMsgHtml('prefs-custom-js') ); |
907 | | - $extraLinks .= " ($customJS)"; |
908 | | - } |
| 897 | + global $wgAllowUserCss, $wgAllowUserJs; |
| 898 | + if( $wgAllowUserCss ) { |
| 899 | + $cssPage = Title::makeTitleSafe( NS_USER, $wgUser->getName().'/'.$skinkey.'.css' ); |
| 900 | + $customCSS = $sk->makeLinkObj( $cssPage, wfMsgExt('prefs-custom-css', array() ) ); |
| 901 | + $extraLinks .= " ($customCSS)"; |
909 | 902 | } |
| 903 | + if( $wgAllowUserJs ) { |
| 904 | + $jsPage = Title::makeTitleSafe( NS_USER, $wgUser->getName().'/'.$skinkey.'.js' ); |
| 905 | + $customJS = $sk->makeLinkObj( $jsPage, wfMsgHtml('prefs-custom-js') ); |
| 906 | + $extraLinks .= " ($customJS)"; |
| 907 | + } |
910 | 908 | if( $skinkey == $wgDefaultSkin ) |
911 | 909 | $sn .= ' (' . wfMsg( 'default' ) . ')'; |
912 | 910 | $wgOut->addHTML( "<input type='radio' name='wpSkin' id=\"wpSkin$skinkey\" value=\"$skinkey\"$checked /> |
Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -397,8 +397,8 @@ |
398 | 398 | 'tables' => $tables, |
399 | 399 | 'fields' => array( |
400 | 400 | 'page_namespace', 'page_title', 'page_is_new', 'page_latest', 'page_is_redirect', |
401 | | - 'rev_id', 'rev_page','rev_text_id', 'rev_timestamp', 'rev_comment', 'rev_minor_edit', |
402 | | - 'rev_user', 'rev_user_text', 'rev_parent_id', 'rev_deleted' |
| 401 | + 'page_len','rev_id', 'rev_page', 'rev_text_id', 'rev_timestamp', 'rev_comment', |
| 402 | + 'rev_minor_edit', 'rev_user', 'rev_user_text', 'rev_parent_id', 'rev_deleted' |
403 | 403 | ), |
404 | 404 | 'conds' => $conds, |
405 | 405 | 'options' => array( 'USE INDEX' => array('revision' => $index) ), |