Index: trunk/extensions/Favorites/Favorites.php |
— | — | @@ -22,12 +22,11 @@ |
23 | 23 | 'name' => 'Favorites', |
24 | 24 | 'author' => 'Jeremy Lemley', |
25 | 25 | 'descriptionmsg' => 'favorites-desc', |
26 | | - 'version' => '0.2.5', |
| 26 | + 'version' => '0.2.2', |
27 | 27 | 'url' => "http://www.mediawiki.org/wiki/Extension:Favorites", |
28 | 28 | ); |
29 | 29 | |
30 | | -global $wgUseIconFavorite, $wgFavoritesPersonalURL; |
31 | | - |
| 30 | +global $wgUseIconFavorite; |
32 | 31 | $dir = dirname(__FILE__) . '/'; |
33 | 32 | $wgExtensionMessagesFiles['Favorites'] = $dir . 'favorites.i18n.php'; |
34 | 33 | $wgAutoloadClasses['Favorites'] = $dir . 'Favorites_body.php'; |
— | — | @@ -63,32 +62,7 @@ |
64 | 63 | $wgHooks['TitleMoveComplete'][] = 'fnHookMoveToFav'; |
65 | 64 | $wgHooks['ArticleDeleteComplete'][] = 'fnHookDeleteFav'; |
66 | 65 | |
67 | | -// Do we want to display a "My Favorites" link in the personal urls area? |
68 | | -if ($wgFavoritesPersonalURL) { |
69 | | - $wgHooks['PersonalUrls'][] = 'onAddPersonalUrls'; |
70 | | -} |
71 | 66 | |
72 | | -function onAddPersonalUrls( &$personal_urls, &$wgTitle ) { |
73 | | - global $wgUser; |
74 | | - |
75 | | - // $skin = $wgUser->getSkin(); |
76 | | - |
77 | | - if( $wgUser->getID() ) { |
78 | | - $url['userpage'] = array_shift( $personal_urls ); |
79 | | - $url[] = array_shift( $personal_urls ); |
80 | | - $url[] = array_shift( $personal_urls ); |
81 | | - |
82 | | - $url[] = array( 'text' => wfMsg( 'myfavoritelist' ), |
83 | | - 'href' => Skin::makeKnownUrlDetails( 'Special:Favoritelist' ) |
84 | | - ); |
85 | | - |
86 | | - |
87 | | - $personal_urls = $url + $personal_urls; |
88 | | - } |
89 | | - |
90 | | - return true; |
91 | | -} |
92 | | - |
93 | 67 | function fnAction ($action, $article) { |
94 | 68 | $title = new Title(); |
95 | 69 | $favArticle = new FavArticle($title); |