Index: trunk/extensions/SocialProfile/UserProfile/UserProfilePage.php |
— | — | @@ -865,6 +865,8 @@ |
866 | 866 | UserActivity::getTypeIcon( $item['type'] ) . '" alt="" border="0" />'; |
867 | 867 | } |
868 | 868 | |
| 869 | + $viewGift = SpecialPage::getTitleFor( 'ViewGift' ); |
| 870 | + |
869 | 871 | switch( $item['type'] ) { |
870 | 872 | case 'edit': |
871 | 873 | $item_html .= wfMsg( 'user-recent-activity-edit' ) . " {$page_link} {$item_time} |
— | — | @@ -889,7 +891,7 @@ |
890 | 892 | '" border="0" alt="" />'; |
891 | 893 | $item_html .= wfMsg( 'user-recent-activity-gift-sent' ) . " {$user_link_2} {$item_time} |
892 | 894 | <div class=\"item\"> |
893 | | - <a href=\"" . $wgScriptPath . "/index.php?title=Special:ViewGift&gift_id={$item['id']}\" rel=\"nofollow\"> |
| 895 | + <a href=\"" . $viewGift->escapeFullURL( "gift_id={$item['id']}" ) . "\" rel=\"nofollow\"> |
894 | 896 | {$gift_image} |
895 | 897 | {$item['pagetitle']} |
896 | 898 | </a> |
— | — | @@ -901,9 +903,9 @@ |
902 | 904 | '" border="0" alt="" />'; |
903 | 905 | $item_html .= wfMsg( 'user-recent-activity-gift-rec' ) . " {$user_link_2} {$item_time}</span> |
904 | 906 | <div class=\"item\"> |
905 | | - <a href=\"" . $wgScriptPath . "/index.php?title=Special:ViewGift&gift_id={$item['id']}\" rel=\"nofollow\"> |
| 907 | + <a href=\"" . $viewGift->escapeFullURL( "gift_id={$item['id']}" ) . "\" rel=\"nofollow\"> |
906 | 908 | {$gift_image} |
907 | | - {$item["pagetitle"]} |
| 909 | + {$item['pagetitle']} |
908 | 910 | </a> |
909 | 911 | </div>"; |
910 | 912 | break; |
— | — | @@ -911,9 +913,10 @@ |
912 | 914 | $gift_image = "<img src=\"{$wgUploadPath}/awards/" . |
913 | 915 | SystemGifts::getGiftImage( $item['namespace'], 'm' ) . |
914 | 916 | '" border="0" alt="" />'; |
| 917 | + $viewSystemGift = SpecialPage::getTitleFor( 'ViewSystemGift' ); |
915 | 918 | $item_html .= wfMsg( 'user-recent-system-gift' ) . " {$item_time} |
916 | 919 | <div class=\"user-home-item-gift\"> |
917 | | - <a href=\"" . $wgScriptPath . "/index.php?title=Special:ViewSystemGift&gift_id={$item['id']}\" rel=\"nofollow\"> |
| 920 | + <a href=\"" . $viewSystemGift->escapeFullURL( "gift_id={$item['id']}" ) . "\" rel=\"nofollow\"> |
918 | 921 | {$gift_image} |
919 | 922 | {$item['pagetitle']} |
920 | 923 | </a> |