r85506 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85505‎ | r85506 | r85507 >
Date:01:39, 6 April 2011
Author:ashley
Status:deferred
Tags:
Comment:
SocialProfile: one more $wgRequest->getVal() to $wgRequest->getInt()
Modified paths:
  • /trunk/extensions/SocialProfile/SystemGifts/TopAwards.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SocialProfile/SystemGifts/TopAwards.php
@@ -27,7 +27,7 @@
2828 // Variables
2929 $gift_name_check = '';
3030 $x = 0;
31 - $category_number = $wgRequest->getVal( 'category' );
 31+ $category_number = $wgRequest->getInt( 'category' );
3232
3333 // System gift class array
3434 $categories = array(
@@ -67,7 +67,7 @@
6868 $wgOut->setPageTitle( "Top Awards - {$page_category} Milestones" );
6969
7070 // Add CSS
71 - $wgOut->addStyle( $wgSystemGiftsScripts . '/SystemGift.css' );
 71+ $wgOut->addExtensionStyle( $wgSystemGiftsScripts . '/SystemGift.css' );
7272
7373 $output = '<div class="top-awards-navigation">
7474 <h1>Award Categories</h1>';

Status & tagging log