Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.body.php |
— | — | @@ -73,6 +73,14 @@ |
74 | 74 | return 0; |
75 | 75 | } |
76 | 76 | |
| 77 | + static function GetFileUrl($name) |
| 78 | + { |
| 79 | + // fix me |
| 80 | + global $wgScriptPath; |
| 81 | + $url = $wgScriptPath . "/extensions" . "$name"; |
| 82 | + return $url; |
| 83 | + } |
| 84 | + |
77 | 85 | static function GetStatus( $userID ) { |
78 | 86 | global $wgOnlineStatusBarTable, $wgOnlineStatusBarModes, $wgOnlineStatusBarDefaultOffline, $wgOnlineStatusBarDefaultOnline, $wgDBname; |
79 | 87 | $db = wfGetDB ( DB_MASTER ); |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.i18n.php |
— | — | @@ -13,6 +13,6 @@ |
14 | 14 | */ |
15 | 15 | $messages['en'] = array( |
16 | 16 | 'onlinestatusbar-desc' => "Status bar which shows whether a user is online, based on preferences, on their user page", |
17 | | -'onlinestatusbar-line' => " is now ", |
| 17 | +'onlinestatusbar-line' => " is now", |
18 | 18 | ); |
19 | 19 | ?> |
Index: trunk/extensions/OnlineStatusBar/20px-Nuvola_apps_krec.svg.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: trunk/extensions/OnlineStatusBar/20px-Nuvola_apps_krec.svg.png |
___________________________________________________________________ |
Added: svn:mime-type |
20 | 20 | + image/png |
Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.php |
— | — | @@ -36,15 +36,13 @@ |
37 | 37 | 'hidden' => "Offline", |
38 | 38 | 'offline' => "Offline", |
39 | 39 | ); |
40 | | - |
41 | 40 | $wgOnlineStatusBarIcon = array ( |
42 | | - 'online' => "//upload.wikimedia.org/wikipedia/commons/thumb/c/cc/Ledgreen.svg/20px-Ledgreen.svg.png", |
43 | | - 'busy' => "//upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Ledorange.svg/20px-Ledorange.svg.png", |
44 | | - 'away' => "//upload.wikimedia.org/wikipedia/commons/thumb/5/5c/Ledorange.svg/20px-Ledorange.svg.png", |
45 | | - 'hidden' => "//upload.wikimedia.org/wikipedia/commons/thumb/6/60/Nuvola_apps_krec.svg/20px-Nuvola_apps_krec.svg.png", |
46 | | - 'offline' => "//upload.wikimedia.org/wikipedia/commons/thumb/6/60/Nuvola_apps_krec.svg/20px-Nuvola_apps_krec.svg.png", |
| 41 | + 'online' => OnlineStatusBar::GetFileUrl( "/OnlineStatusBar/20px-Ledgreen.svg.png" ), |
| 42 | + 'busy' => OnlineStatusBar::GetFileUrl( "/OnlineStatusBar/20px-Ledorange.svg.png" ), |
| 43 | + 'away' => OnlineStatusBar::GetFileUrl( "/OnlineStatusBar/20px-Ledorange.svg.png" ), |
| 44 | + 'hidden' => OnlineStatusBar::GetFileUrl( "/OnlineStatusBar/20px-Nuvola_apps_krec.svg.png"), |
| 45 | + 'offline' => OnlineStatusBar::GetFileUrl( "/OnlineStatusBar/20px-Nuvola_apps_krec.svg.png"), |
47 | 46 | ); |
48 | | - |
49 | 47 | $wgOnlineStatusBarColor = array ( |
50 | 48 | 'online' => "green", |
51 | 49 | 'busy' => "orange", |
Index: trunk/extensions/OnlineStatusBar/20px-Ledorange.svg.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: trunk/extensions/OnlineStatusBar/20px-Ledorange.svg.png |
___________________________________________________________________ |
Added: svn:mime-type |
52 | 50 | + image/png |
Index: trunk/extensions/OnlineStatusBar/20px-Ledgreen.svg.png |
Cannot display: file marked as a binary type. |
svn:mime-type = image/png |
Property changes on: trunk/extensions/OnlineStatusBar/20px-Ledgreen.svg.png |
___________________________________________________________________ |
Added: svn:mime-type |
53 | 51 | + image/png |