Index: trunk/extensions/Vote/Vote.php |
— | — | @@ -23,7 +23,8 @@ |
24 | 24 | ); |
25 | 25 | |
26 | 26 | $dir = dirname(__FILE__) . '/'; |
27 | | -$wgExtensionMessagesFiles['SpecialVote'] = $dir . 'Vote.i18n.php'; |
| 27 | +$wgExtensionMessagesFiles['Vote'] = $dir . 'Vote.i18n.php'; |
| 28 | +$wgExtensionAliasesFiles['Vote'] = $dir . 'Vote.alias.php'; |
28 | 29 | $wgAutoloadClasses['SpecialVote'] = $dir . 'Vote.page.php'; |
29 | 30 | $wgSpecialPages['Vote'] = 'SpecialVote'; |
30 | 31 | $wgExtensionFunctions[] = 'efVote'; |
Index: trunk/extensions/Vote/Vote.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'Vote' => array( 'Vote' ), |
| 12 | +); |
Property changes on: trunk/extensions/Vote/Vote.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/WhosOnline/WhosOnline.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'WhosOnline' => array( 'WhosOnline' ), |
| 12 | +); |
Property changes on: trunk/extensions/WhosOnline/WhosOnline.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/WhosOnline/WhosOnline.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | |
16 | 16 | $wgExtensionCredits['other'][] = array( |
17 | 17 | 'name' => 'WhosOnline', |
18 | | - 'version' => '1.2', |
| 18 | + 'version' => '1.3', |
19 | 19 | 'author' => 'Maciej Brencz', |
20 | 20 | 'description' => 'Creates list of logged-in & anons currently online', |
21 | 21 | 'descriptionmsg' => 'whosonline-desc', |
— | — | @@ -24,6 +24,7 @@ |
25 | 25 | $dir = dirname(__FILE__) . '/'; |
26 | 26 | $wgAutoloadClasses['SpecialWhosOnline'] = $dir . 'WhosOnlineSpecialPage.php'; |
27 | 27 | $wgExtensionMessagesFiles['WhosOnline'] = $dir . 'WhosOnline.i18n.php'; |
| 28 | +$wgExtensionAliasesFiles['WhosOnline'] = $dir . 'WhosOnline.alias.php'; |
28 | 29 | $wgSpecialPages['WhosOnline'] = 'SpecialWhosOnline'; |
29 | 30 | |
30 | 31 | // update online data |
— | — | @@ -52,4 +53,4 @@ |
53 | 54 | wfProfileOut(__METHOD__); |
54 | 55 | |
55 | 56 | return true; |
56 | | -} |
\ No newline at end of file |
| 57 | +} |
Index: trunk/extensions/Piwik/Piwik.alias.php |
— | — | @@ -0,0 +1,14 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$aliases = array(); |
| 11 | + |
| 12 | +/** English */ |
| 13 | +$aliases['en'] = array( |
| 14 | + 'Piwik' => array( 'Piwik' ), |
| 15 | +); |
Property changes on: trunk/extensions/Piwik/Piwik.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 16 | + native |
Added: svn:keywords |
2 | 17 | + Id |
Index: trunk/extensions/Piwik/Piwik.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | | - * Parser hook extension to add a <randomimage> tag |
| 4 | + * Inserts Piwik script into MediaWiki pages for tracking and adds some stats |
5 | 5 | * |
6 | 6 | * @addtogroup Extensions |
7 | 7 | * @author Isb1009 <isb1009 at gmail dot com> |
— | — | @@ -83,21 +83,8 @@ |
84 | 84 | $dir = dirname(__FILE__) . '/'; |
85 | 85 | $wgAutoloadClasses['Piwik'] = $dir . 'Piwik_specialpage.php'; # Tell MediaWiki to load the extension body. |
86 | 86 | $wgExtensionMessagesFiles['Piwik'] = $dir . 'Piwik.i18n.php'; |
| 87 | +$wgExtensionAliasesFiles['Piwik'] = $dir . 'Piwik.alias.php'; |
87 | 88 | $wgSpecialPages['Piwik'] = 'Piwik'; # Let MediaWiki know about your new special page. |
88 | | -$wgHooks['LanguageGetSpecialPageAliases'][] = 'Piwik'; # Add any aliases for the special page. |
89 | 89 | |
90 | | -function Piwik(&$specialPageArray, $code) { |
91 | | - # The localized title of the special page is among the messages of the extension: |
92 | | - |
93 | | - wfLoadExtensionMessages('Piwik'); |
94 | | - $text = wfMsg('piwik'); |
95 | | - |
96 | | - # Convert from title in text form to DBKey and put it into the alias array: |
97 | | - $title = Title::newFromText($text); |
98 | | - $specialPageArray['Piwik'][] = $title->getDBKey(); |
99 | | - |
100 | | - return true; |
101 | | -} |
102 | | - |
103 | 90 | ///Alias for efAddPiwik - backwards compatibility. |
104 | 91 | function addPiwik() { return efAddPiwik(); } |
Index: trunk/extensions/WhoIsWatching/SpecialWhoIsWatching_body.php |
— | — | @@ -2,105 +2,93 @@ |
3 | 3 | |
4 | 4 | class WhoIsWatching extends SpecialPage |
5 | 5 | { |
6 | | - function WhoIsWatching() { |
7 | | - SpecialPage::SpecialPage( 'WhoIsWatching' ); |
8 | | - self::loadMessages(); |
9 | | - } |
| 6 | + function WhoIsWatching() { |
| 7 | + SpecialPage::SpecialPage( 'WhoIsWatching' ); |
| 8 | + } |
10 | 9 | |
11 | | - function loadMessages() { |
12 | | - static $messagesLoaded = false; |
13 | | - global $wgMessageCache; |
14 | | - if ( !$messagesLoaded ) { |
15 | | - $messagesLoaded = true; |
| 10 | + function execute($par) { |
| 11 | + global $wgRequest, $wgOut, $wgCanonicalNamespaceNames, $whoiswatching_nametype, $whoiswatching_allowaddingpeople; |
16 | 12 | |
17 | | - require( dirname( __FILE__ ) . '/SpecialWhoIsWatching.i18n.php' ); |
18 | | - foreach ( $messages as $lang => $langMessages ) { |
19 | | - $wgMessageCache->addMessages( $langMessages, $lang ); |
20 | | - } |
21 | | - } |
22 | | - return true; |
23 | | - } |
| 13 | + wfLoadExtensionMessages( 'WhoIsWatching' ); |
24 | 14 | |
25 | | - function execute($par) { |
26 | | - global $wgRequest, $wgOut, $wgCanonicalNamespaceNames, $whoiswatching_nametype, $whoiswatching_allowaddingpeople; |
| 15 | + $this->setHeaders(); |
| 16 | + $wgOut->setPagetitle(wfMsg('whoiswatching')); |
27 | 17 | |
28 | | - $this->setHeaders(); |
29 | | - $wgOut->setPagetitle(wfMsg('whoiswatching')); |
| 18 | + $title = $wgRequest->getVal('page'); |
| 19 | + if (!isset($title)) { |
| 20 | + $wgOut->addWikiText(wfMsg('specialwhoiswatchingusage')); |
| 21 | + return; |
| 22 | + } |
30 | 23 | |
31 | | - $title = $wgRequest->getVal('page'); |
32 | | - if (!isset($title)) { |
33 | | - $wgOut->addWikiText(wfMsg('specialwhoiswatchingusage')); |
34 | | - return; |
35 | | - } |
| 24 | + $ns = $wgRequest->getVal('ns'); |
| 25 | + $ns = str_replace(' ', '_', $ns); |
| 26 | + if ($ns == '') |
| 27 | + $ns = NS_MAIN; |
| 28 | + else { |
| 29 | + foreach ( $wgCanonicalNamespaceNames as $i => $text ) { |
| 30 | + if (preg_match("/$ns/i", $text)) { |
| 31 | + $ns = $i; |
| 32 | + break; |
| 33 | + } |
| 34 | + } |
| 35 | + } |
| 36 | + $pageTitle = Title::makeTitle($ns, $title); |
36 | 37 | |
37 | | - $ns = $wgRequest->getVal('ns'); |
38 | | - $ns = str_replace(' ', '_', $ns); |
39 | | - if ($ns == '') |
40 | | - $ns = NS_MAIN; |
41 | | - else { |
42 | | - foreach ( $wgCanonicalNamespaceNames as $i => $text ) { |
43 | | - if (preg_match("/$ns/i", $text)) { |
44 | | - $ns = $i; |
45 | | - break; |
46 | | - } |
47 | | - } |
48 | | - } |
49 | | - $pageTitle = Title::makeTitle($ns, $title); |
| 38 | + $secret = $wgRequest->getVal("whoiswatching"); |
| 39 | + if($secret == sha1("whoiswatching")) { |
| 40 | + $idArray = $wgRequest->getArray('idArray'); |
| 41 | + foreach ($idArray as $name => $id) { |
| 42 | + #$wgOut->addWikiText("* Adding name $name userid $id to watchlist\n"); |
| 43 | + $u = User::newFromId($id); |
| 44 | + $u->addWatch($pageTitle); |
| 45 | + } |
| 46 | + } |
50 | 47 | |
51 | | - $secret = $wgRequest->getVal("whoiswatching"); |
52 | | - if($secret == sha1("whoiswatching")) { |
53 | | - $idArray = $wgRequest->getArray('idArray'); |
54 | | - foreach ($idArray as $name => $id) { |
55 | | - #$wgOut->addWikiText("* Adding name $name userid $id to watchlist\n"); |
56 | | - $u = User::newFromId($id); |
57 | | - $u->addWatch($pageTitle); |
58 | | - } |
59 | | - } |
60 | | - |
61 | | - $wiki_title = $pageTitle->getPrefixedText(); |
62 | | - $wiki_path = $pageTitle->getPrefixedDBkey(); |
63 | | - if (preg_match('/^Category/', $wiki_path)) |
64 | | - $wiki_path = ':' . $wiki_path; |
65 | | - $wgOut->addWikiText("== ".sprintf(wfMsg('specialwhoiswatchingthepage'), "[[$wiki_path|$wiki_title]] ==")); |
| 48 | + $wiki_title = $pageTitle->getPrefixedText(); |
| 49 | + $wiki_path = $pageTitle->getPrefixedDBkey(); |
| 50 | + if (preg_match('/^Category/', $wiki_path)) |
| 51 | + $wiki_path = ':' . $wiki_path; |
| 52 | + $wgOut->addWikiText("== ".sprintf(wfMsg('specialwhoiswatchingthepage'), "[[$wiki_path|$wiki_title]] ==")); |
66 | 53 | |
67 | | - $dbr = wfGetDB( DB_SLAVE ); |
68 | | - $watchingusers = array(); |
69 | | - $res = $dbr->select( 'watchlist', 'wl_user', array('wl_namespace'=>$ns, 'wl_title'=>$title), __METHOD__); |
70 | | - for ( $row = $dbr->fetchObject($res); $row; $row = $dbr->fetchObject($res)) { |
71 | | - $u = User::newFromID($row->wl_user); |
72 | | - if (($whoiswatching_nametype == 'UserName') || ($u->getRealName() == '')) |
73 | | - $watchingusers[$row->wl_user] = ":[[User:" . $u->getName() . "]]"; |
74 | | - else |
75 | | - $watchingusers[$row->wl_user] = ":[[:User:" . $u->getName() . "|" . $u->getRealName() . "]]"; |
76 | | - } |
| 54 | + $dbr = wfGetDB( DB_SLAVE ); |
| 55 | + $watchingusers = array(); |
| 56 | + $res = $dbr->select( 'watchlist', 'wl_user', array('wl_namespace'=>$ns, 'wl_title'=>$title), __METHOD__); |
| 57 | + for ( $row = $dbr->fetchObject($res); $row; $row = $dbr->fetchObject($res)) { |
| 58 | + $u = User::newFromID($row->wl_user); |
| 59 | + if (($whoiswatching_nametype == 'UserName') || ($u->getRealName() == '')) { |
| 60 | + $watchingusers[$row->wl_user] = ":[[User:" . $u->getName() . "]]"; |
| 61 | + } else { |
| 62 | + $watchingusers[$row->wl_user] = ":[[:User:" . $u->getName() . "|" . $u->getRealName() . "]]"; |
| 63 | + } |
| 64 | + } |
77 | 65 | |
78 | | - asort($watchingusers); |
79 | | - foreach ($watchingusers as $id => $link) |
80 | | - $wgOut->addWikiText($link); |
81 | | - |
82 | | - if ($whoiswatching_allowaddingpeople) |
83 | | - { |
84 | | - $wgOut->addWikiText("== ".wfMsg('specialwhoiswatchingaddusers')." =="); |
85 | | - |
86 | | - $wgOut->addHTML("<form method=\"post\">"); |
87 | | - $wgOut->addHTML("<input type=\"hidden\" value=\"".sha1("whoiswatching")."\" name=\"whoiswatching\" />"); |
88 | | - $wgOut->addHTML("<div style=\"border: thin solid #000000\"><table cellpadding=\"15\" cellspacing=\"0\" border=\"0\">"); |
89 | | - $wgOut->addHTML("<tr><td>"); |
90 | | - $wgOut->addHTML('<select name="idArray[]" size="12" multiple="multiple">'); |
91 | | - $users = array(); |
92 | | - $res = $dbr->select( 'user', 'user_name', '', __METHOD__); |
93 | | - for ( $row = $dbr->fetchObject($res); $row; $row = $dbr->fetchObject($res)) { |
94 | | - $u = User::newFromName($row->user_name); |
95 | | - if (!array_key_exists($u->getID(), $watchingusers)) |
96 | | - if ($u->isAllowed('read') && ($u->getEmail() != '')) |
97 | | - $users[strtolower($u->getRealName())] = $u->getID(); |
98 | | - } |
99 | | - ksort($users); |
100 | | - foreach ($users as $name => $id) |
101 | | - $wgOut->addHTML("<option value=\"".$id."\">".$name."</option>"); |
102 | | - $wgOut->addHTML('</select></td><td>'); |
103 | | - $wgOut->addHTML("<input type=\"submit\" value=\"".wfMsg('specialwhoiswatchingaddbtn')."\" />"); |
104 | | - $wgOut->addHTML("</td></tr></table></div></form>"); |
105 | | - } |
106 | | - } |
| 66 | + asort($watchingusers); |
| 67 | + foreach ($watchingusers as $id => $link) |
| 68 | + $wgOut->addWikiText($link); |
| 69 | + |
| 70 | + if ($whoiswatching_allowaddingpeople) |
| 71 | + { |
| 72 | + $wgOut->addWikiText("== ".wfMsg('specialwhoiswatchingaddusers')." =="); |
| 73 | + |
| 74 | + $wgOut->addHTML("<form method=\"post\">"); |
| 75 | + $wgOut->addHTML("<input type=\"hidden\" value=\"".sha1("whoiswatching")."\" name=\"whoiswatching\" />"); |
| 76 | + $wgOut->addHTML("<div style=\"border: thin solid #000000\"><table cellpadding=\"15\" cellspacing=\"0\" border=\"0\">"); |
| 77 | + $wgOut->addHTML("<tr><td>"); |
| 78 | + $wgOut->addHTML('<select name="idArray[]" size="12" multiple="multiple">'); |
| 79 | + $users = array(); |
| 80 | + $res = $dbr->select( 'user', 'user_name', '', __METHOD__); |
| 81 | + for ( $row = $dbr->fetchObject($res); $row; $row = $dbr->fetchObject($res)) { |
| 82 | + $u = User::newFromName($row->user_name); |
| 83 | + if (!array_key_exists($u->getID(), $watchingusers)) |
| 84 | + if ($u->isAllowed('read') && ($u->getEmail() != '')) |
| 85 | + $users[strtolower($u->getRealName())] = $u->getID(); |
| 86 | + } |
| 87 | + ksort($users); |
| 88 | + foreach ($users as $name => $id) |
| 89 | + $wgOut->addHTML("<option value=\"".$id."\">".$name."</option>"); |
| 90 | + $wgOut->addHTML('</select></td><td>'); |
| 91 | + $wgOut->addHTML("<input type=\"submit\" value=\"".wfMsg('specialwhoiswatchingaddbtn')."\" />"); |
| 92 | + $wgOut->addHTML("</td></tr></table></div></form>"); |
| 93 | + } |
| 94 | + } |
107 | 95 | } |
Index: trunk/extensions/WhoIsWatching/SpecialWhoIsWatching.i18n.php |
— | — | @@ -8,12 +8,13 @@ |
9 | 9 | $messages = array(); |
10 | 10 | |
11 | 11 | $messages['en'] = array( |
12 | | - 'whoiswatching' => 'Who is watching a wiki page', |
13 | | - 'specialwhoiswatchingthepage' => 'Who is watching %s', |
14 | | - 'specialwhoiswatchingusage' => 'This special page cannot be used on its own. |
| 12 | + 'whoiswatching' => 'Who is watching a wiki page', |
| 13 | + 'whoiswatching-desc' => 'Provides a listing of usernames watching a wiki page', |
| 14 | + 'specialwhoiswatchingthepage' => 'Who is watching %s', |
| 15 | + 'specialwhoiswatchingusage' => 'This special page cannot be used on its own. |
15 | 16 | Please use the page [[MediaWiki:Number_of_watching_users_pageview]] to define an entry point to this special page.', |
16 | 17 | 'specialwhoiswatchingaddusers' => 'Add users to watch the page', |
17 | | - 'specialwhoiswatchingaddbtn' => 'Add selected Users', |
| 18 | + 'specialwhoiswatchingaddbtn' => 'Add selected users', |
18 | 19 | ); |
19 | 20 | |
20 | 21 | /** Arabic (العربية) |
Index: trunk/extensions/WhoIsWatching/SpecialWhoIsWatching.php |
— | — | @@ -10,34 +10,22 @@ |
11 | 11 | } |
12 | 12 | |
13 | 13 | $wgExtensionCredits['specialpage'][] = array( |
14 | | - 'version' => '0.6', |
15 | | - 'name' => 'WhoIsWatching', |
16 | | - 'author' => 'Paul Grinberg, Siebrand Mazeland', |
17 | | - 'email' => 'gri6507 at yahoo dot com', |
18 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:WhoIsWatching', |
19 | | - 'description' => 'Provides a listing of usernames watching a wiki page' |
| 14 | + 'version' => '0.7', |
| 15 | + 'name' => 'WhoIsWatching', |
| 16 | + 'author' => 'Paul Grinberg, Siebrand Mazeland', |
| 17 | + 'email' => 'gri6507 at yahoo dot com', |
| 18 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:WhoIsWatching', |
| 19 | + 'description' => 'Provides a listing of usernames watching a wiki page', |
| 20 | + 'descriptionmsg' => 'whoiswatching-desc', |
20 | 21 | ); |
21 | 22 | |
22 | 23 | $wgAutoloadClasses['WhoIsWatching'] = dirname(__FILE__) . '/SpecialWhoIsWatching_body.php'; |
| 24 | +$wgExtensionMessagesFiles['WhoIsWatching'] = $dir . 'WhoIsWatching.i18n.php'; |
| 25 | +$wgExtensionAliasesFiles['WhoIsWatching'] = $dir . 'SpecialWhoIsWatching.alias.php'; |
23 | 26 | $wgSpecialPages['WhoIsWatching'] = 'WhoIsWatching'; |
24 | | -$wgHooks['LoadAllMessages'][] = 'WhoIsWatching::loadMessages'; |
25 | | -$wgHooks['LanguageGetSpecialPageAliases'][] = 'whoiswatching'; |
26 | 27 | |
27 | 28 | # Set the following to either 'UserName' or 'RealName' to display the list of watching users as such. |
28 | 29 | $whoiswatching_nametype = 'RealName'; |
29 | 30 | |
30 | 31 | # Set the following to either True or False to optionally allow users to add others to watch a particular page |
31 | 32 | $whoiswatching_allowaddingpeople = true; |
32 | | - |
33 | | -function whoiswatching(&$specialPageArray, $code) { |
34 | | - # The localized title of the special page is among the messages of the extension: |
35 | | - WhoIsWatching::loadMessages(); |
36 | | - $text = wfMsg('whoiswatching'); |
37 | | - |
38 | | - # Convert from title in text form to DBKey and put it into the alias array: |
39 | | - $title = Title::newFromText($text); |
40 | | - $specialPageArray['WhoIsWatching'][] = $title->getDBkey(); |
41 | | - |
42 | | - return true; |
43 | | -} |
44 | | - |
Index: trunk/extensions/Patroller/Patroller.alias.php |
— | — | @@ -0,0 +1,14 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$aliases = array(); |
| 11 | + |
| 12 | +/** English */ |
| 13 | +$aliases['en'] = array( |
| 14 | + 'Patroller' => array( 'Patroller' ), |
| 15 | +); |
Property changes on: trunk/extensions/Patroller/Patroller.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 16 | + native |
Added: svn:keywords |
2 | 17 | + Id |
Index: trunk/extensions/Patroller/Patroller.php |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | |
13 | 13 | $wgExtensionCredits['specialpage'][] = array( |
14 | 14 | 'name' => 'Patroller', |
15 | | - 'version' => '1.0rc2', |
| 15 | + 'version' => '1.0rc3', |
16 | 16 | 'author' => 'Rob Church', |
17 | 17 | 'description' => 'Enhanced patrolling interface with workload sharing', |
18 | 18 | 'descriptionmsg' => 'patrol-desc', |
— | — | @@ -20,6 +20,7 @@ |
21 | 21 | |
22 | 22 | $dir = dirname(__FILE__) . '/'; |
23 | 23 | $wgExtensionMessagesFiles['Patroller'] = $dir . 'Patroller.i18n.php'; |
| 24 | +$wgExtensionAliasesFiles['Patroller'] = $dir . 'Patroller.alias.php'; |
24 | 25 | $wgAutoloadClasses['Patroller'] = $dir . 'Patroller.class.php'; |
25 | 26 | $wgSpecialPages['Patrol'] = 'Patroller'; |
26 | 27 | |
Index: trunk/extensions/WhiteList/SpecialWhitelistEdit.alias.php |
— | — | @@ -0,0 +1,12 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'WhiteList' => array( 'WhiteList' ), |
| 12 | + 'WhitelistEdit' => array( 'WhitelistEdit' ), |
| 13 | +); |
Property changes on: trunk/extensions/WhiteList/SpecialWhitelistEdit.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 14 | + native |
Added: svn:keywords |
2 | 15 | + Id |
Index: trunk/extensions/WhiteList/SpecialWhitelistEdit.php |
— | — | @@ -31,14 +31,14 @@ |
32 | 32 | |
33 | 33 | $wgExtensionCredits['specialpage'][] = array( |
34 | 34 | 'name' => 'WhiteListEdit', |
35 | | - 'version' => 'v0.9.0', |
| 35 | + 'version' => 'v0.10.0', |
36 | 36 | 'author' => array('Paul Grinberg', 'Mike Sullivan'), |
37 | 37 | 'email' => 'gri6507 at yahoo dot com, ms-mediawiki AT umich DOT edu', |
38 | 38 | 'description' => 'Edit the access permissions of restricted users', |
39 | 39 | 'descriptionmsg' => 'whitelist-desc', |
40 | 40 | 'url' => 'http://www.mediawiki.org/wiki/Extension:WhiteList', |
41 | 41 | ); |
42 | | - |
| 42 | + |
43 | 43 | # these are the groups and the rights used within this extension |
44 | 44 | if( !isset($wgWhiteListRestrictedGroup)) |
45 | 45 | $wgWhiteListRestrictedGroup = 'restricted'; |
— | — | @@ -97,6 +97,7 @@ |
98 | 98 | |
99 | 99 | $wgExtensionMessagesFiles['WhitelistEdit'] = $dir . 'SpecialWhitelistEdit.i18n.php'; |
100 | 100 | $wgExtensionMessagesFiles['Whitelist'] = $dir . 'SpecialWhitelistEdit.i18n.php'; |
| 101 | +$wgExtensionAliasesFiles['Whitelist'] = $dir . 'SpecialWhitelistEdit.alias.php'; |
101 | 102 | $wgAutoloadClasses['WhitelistEdit'] = $dir . 'SpecialWhitelistEdit_body.php'; |
102 | 103 | $wgAutoloadClasses['Whitelist'] = $dir . 'SpecialWhitelistEdit_body.php'; |
103 | 104 | $wgSpecialPages['WhitelistEdit'] = 'WhitelistEdit'; |
Index: trunk/extensions/RandomInCategory/SpecialRandomincategory.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'RandomInCategory' => array( 'RandomInCategory' ), |
| 12 | +); |
Property changes on: trunk/extensions/RandomInCategory/SpecialRandomincategory.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/RandomInCategory/SpecialRandomincategory.php |
— | — | @@ -21,7 +21,9 @@ |
22 | 22 | 'descriptionmsg' => 'randomincategory-desc', |
23 | 23 | ); |
24 | 24 | |
25 | | -$wgExtensionMessagesFiles['RandomInCategory'] = dirname(__FILE__) . '/SpecialRandomincategory.i18n.php'; |
| 25 | +$dir = dirname(__FILE__) . '/'; |
| 26 | +$wgExtensionMessagesFiles['RandomInCategory'] = $dir . 'SpecialRandomincategory.i18n.php'; |
| 27 | +$wgExtensionAliasesFiles['RandomInCategory'] = $dir . 'SpecialRandomincategory.alias.php'; |
26 | 28 | |
27 | 29 | $wgSpecialPages['Randomincategory'] = 'RandomPageInCategory'; |
28 | | -$wgAutoloadClasses['RandomPageInCategory'] = dirname( __FILE__ ) . '/SpecialRandomincategory.body.php'; |
| 30 | +$wgAutoloadClasses['RandomPageInCategory'] = $dir . 'SpecialRandomincategory.body.php'; |
Index: trunk/extensions/WhatIsMyIP/WhatIsMyIP.php |
— | — | @@ -22,7 +22,7 @@ |
23 | 23 | } |
24 | 24 | $wgExtensionCredits['specialpage'][] = array( |
25 | 25 | 'name' => 'WhatIsMyIP', |
26 | | - 'version' => '1.0', |
| 26 | + 'version' => '1.1', |
27 | 27 | 'description' => 'Shows current user\'s IP address on [[Special:WhatIsMyIP]]', |
28 | 28 | 'author' => 'Łukasz Galezewski', |
29 | 29 | 'url' => 'http://www.mediawiki.org/wiki/Extension:WhatIsMyIP', |
— | — | @@ -35,5 +35,6 @@ |
36 | 36 | |
37 | 37 | $dir = dirname(__FILE__) . '/'; |
38 | 38 | $wgExtensionMessagesFiles['WhatIsMyIP'] = $dir . 'WhatIsMyIP.i18n.php'; |
| 39 | +$wgExtensionAliasesFiles['WhatIsMyIP'] = $dir . 'WhatIsMyIP.alias.php'; |
39 | 40 | $wgAutoloadClasses['WhatIsMyIP'] = $dir. 'WhatIsMyIP_body.php'; |
40 | 41 | $wgSpecialPages['WhatIsMyIP'] = 'WhatIsMyIP'; |
Index: trunk/extensions/WhatIsMyIP/WhatIsMyIP.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'WhatIsMyIP' => array( 'WhatIsMyIP' ), |
| 12 | +); |
Property changes on: trunk/extensions/WhatIsMyIP/WhatIsMyIP.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/SemanticForms/includes/SF_GlobalFunctions.php |
— | — | @@ -78,6 +78,7 @@ |
79 | 79 | require_once($sfgIP . '/includes/SF_FormEditTab.php'); |
80 | 80 | |
81 | 81 | $wgExtensionMessagesFiles['SemanticForms'] = $sfgIP . '/languages/SF_Messages.php'; |
| 82 | +$wgExtensionAliasesFiles['ReplaceText'] = $sfgIP . '/languages/SF_Aliases.php'; |
82 | 83 | |
83 | 84 | /** |
84 | 85 | * Do the actual intialization of the extension. This is just a delayed init that makes sure |
— | — | @@ -441,7 +442,7 @@ |
442 | 443 | $editor->submit(); |
443 | 444 | return false; |
444 | 445 | } |
445 | | - |
| 446 | + |
446 | 447 | $target_title = $article->getTitle(); |
447 | 448 | $target_name = sffTitleString($target_title); |
448 | 449 | if ($target_title->exists()) { |
— | — | @@ -547,7 +548,7 @@ |
548 | 549 | wfMsgForContent('march'), |
549 | 550 | wfMsgForContent('april'), |
550 | 551 | wfMsgForContent('may'), |
551 | | - wfMsgForContent('june'), |
| 552 | + wfMsgForContent('june'), |
552 | 553 | wfMsgForContent('july'), |
553 | 554 | wfMsgForContent('august'), |
554 | 555 | wfMsgForContent('september'), |
— | — | @@ -565,9 +566,9 @@ |
566 | 567 | $db = wfGetDB( DB_SLAVE ); |
567 | 568 | $sql_options = array(); |
568 | 569 | $sql_options['LIMIT'] = $sfgMaxAutocompleteValues; |
569 | | - $property_field = ($is_relation) ? 'relation_title' : 'attribute_title'; |
570 | | - $value_field = ($is_relation) ? 'object_title' : 'value_xsd'; |
571 | | - $property_table = ($is_relation) ? 'smw_relations' : 'smw_attributes'; |
| 570 | + $property_field = ($is_relation) ? 'relation_title' : 'attribute_title'; |
| 571 | + $value_field = ($is_relation) ? 'object_title' : 'value_xsd'; |
| 572 | + $property_table = ($is_relation) ? 'smw_relations' : 'smw_attributes'; |
572 | 573 | $conditions = "$property_field = '$property_name'"; |
573 | 574 | if ($substring != null) { |
574 | 575 | $substring = str_replace(' ', '_', strtolower($substring)); |
— | — | @@ -660,7 +661,7 @@ |
661 | 662 | while ($res && $row = $db->fetchRow($res)) { |
662 | 663 | if (array_key_exists('page_title', $row)) { |
663 | 664 | $page_namespace = $row['page_namespace']; |
664 | | - if ($page_namespace == NS_CATEGORY) { |
| 665 | + if ($page_namespace == NS_CATEGORY) { |
665 | 666 | $new_category = $row[ 'page_title' ]; |
666 | 667 | if (!in_array($new_category, $categories)) { |
667 | 668 | $newcategories[] = $new_category; |
Index: trunk/extensions/SemanticForms/languages/SF_Aliases.php |
— | — | @@ -0,0 +1,23 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$aliases = array(); |
| 11 | + |
| 12 | +/** English */ |
| 13 | +$aliases['en'] = array( |
| 14 | + 'AddData' => array( 'AddData' ), |
| 15 | + 'AddPage' => array( 'AddPage' ), |
| 16 | + 'CreateCategory' => array( 'CreateCategory' ), |
| 17 | + 'CreateForm' => array( 'CreateForm' ), |
| 18 | + 'CreateProperty' => array( 'CreateProperty' ), |
| 19 | + 'CreateTemplate' => array( 'CreateTemplate' ), |
| 20 | + 'EditData' => array( 'EditData' ), |
| 21 | + 'Forms' => array( 'Forms' ), |
| 22 | + 'Templates' => array( 'Templates' ), |
| 23 | + 'UploadWindow' => array( 'UploadWindow' ), |
| 24 | +); |
Property changes on: trunk/extensions/SemanticForms/languages/SF_Aliases.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 25 | + native |
Added: svn:keywords |
2 | 26 | + Id |
Index: trunk/extensions/RefreshSpecial/RefreshSpecial.i18n.php |
— | — | @@ -12,7 +12,8 @@ |
13 | 13 | */ |
14 | 14 | $messages['en'] = array ( |
15 | 15 | 'refreshspecial' => 'Refresh special pages', |
16 | | - 'refreshspecial-title' => 'Refresh Special Pages', |
| 16 | + 'refreshspecial-desc' => 'Allows [[Special:RefreshSpecial|manual special page refresh]] of special pages', |
| 17 | + 'refreshspecial-title' => 'Refresh special pages', |
17 | 18 | 'refreshspecial-help' => 'This special page provides means to manually refresh special pages. When you have chosen all pages that you want to refresh, click on the Refresh button below to make it go. Warning: the refresh may take a while on larger wikis.', |
18 | 19 | 'refreshspecial-button' => 'Refresh selected', |
19 | 20 | 'refreshspecial-fail' => 'Please check at least one special page to refresh.', |
— | — | @@ -22,15 +23,15 @@ |
23 | 24 | 'refreshspecial-choice' => 'refreshing special pages', |
24 | 25 | 'refreshspecial-js-disabled' => '(<i>You cannot select all pages when JavaScript is disabled</i>)', |
25 | 26 | 'refreshspecial-select-all-pages' => ' select all pages ', |
26 | | - 'refreshspecial-link-back' => 'Get back to extension ', |
| 27 | + 'refreshspecial-link-back' => 'Go back to extension ', |
27 | 28 | 'refreshspecial-here' => '<b>here</b>', |
28 | | - 'refreshspecial-none-selected' => 'You haven\'t selected any special pages. Reverting to default selection.', |
29 | | - 'refreshspecial-db-error' => 'FAILED: database error', |
| 29 | + 'refreshspecial-none-selected' => 'You have not selected any special pages. Reverting to default selection.', |
| 30 | + 'refreshspecial-db-error' => 'Failed: database error', |
30 | 31 | 'refreshspecial-no-page' => 'No such special page', |
31 | 32 | 'refreshspecial-slave-lagged' => 'Slave lagged, waiting...', |
32 | 33 | 'refreshspecial-reconnected' => 'Reconnected.', |
33 | 34 | 'refreshspecial-reconnecting' => 'Connection failed, reconnecting in 10 seconds...', |
34 | | - 'refreshspecial-total-display' => '<br />Refreshed $1 pages totalling $2 rows in time $3 (complete time of the script run is $4)', |
| 35 | + 'refreshspecial-total-display' => '<br />Refreshed $1 pages totaling $2 rows in time $3 (complete time of the script run is $4)', |
35 | 36 | ); |
36 | 37 | |
37 | 38 | /** Finnish (Suomi) |
Index: trunk/extensions/RefreshSpecial/RefreshSpecial.php |
— | — | @@ -15,15 +15,17 @@ |
16 | 16 | $wgGroupPermissions['staff']['refreshspecial'] = true; |
17 | 17 | |
18 | 18 | $wgExtensionCredits['specialpage'][] = array( |
19 | | - 'name' => 'Refresh Special', |
20 | | - 'author' => 'Bartek Łapiński', |
21 | | - 'version' => '1.0', |
22 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:RefreshSpecial', |
23 | | - 'description' => 'Allows manual special page refresh of special pages' |
| 19 | + 'name' => 'Refresh Special', |
| 20 | + 'author' => 'Bartek Łapiński', |
| 21 | + 'version' => '1.1', |
| 22 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:RefreshSpecial', |
| 23 | + 'description' => 'Allows manual special page refresh of special pages' |
| 24 | + 'descriptionmsg' => 'refreshspecial-desc', |
24 | 25 | ); |
25 | 26 | |
26 | 27 | $dir = dirname(__FILE__) . '/'; |
27 | 28 | $wgExtensionMessagesFiles['RefreshSpecial'] = $dir . 'RefreshSpecial.i18n.php'; |
| 29 | +$wgExtensionAliasesFiles['RefreshSpecial'] = $dir . 'RefreshSpecial.alias.php'; |
28 | 30 | $wgAutoloadClasses['RefreshSpecial'] = $dir. 'RefreshSpecial.body.php'; |
29 | 31 | $wgSpecialPages['RefreshSpecial'] = 'RefreshSpecial'; |
30 | 32 | |
— | — | @@ -34,4 +36,4 @@ |
35 | 37 | /* amount of acceptable slave lag */ |
36 | 38 | define('REFRESHSPECIAL_SLAVE_LAG_LIMIT', 600); |
37 | 39 | /* interval when slave is lagged */ |
38 | | -define('REFRESHSPECIAL_SLAVE_LAG_SLEEP', 30); |
\ No newline at end of file |
| 40 | +define('REFRESHSPECIAL_SLAVE_LAG_SLEEP', 30); |
Index: trunk/extensions/RefreshSpecial/RefreshSpecial.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'RefreshSpecial' => array( 'RefreshSpecial' ), |
| 12 | +); |
Property changes on: trunk/extensions/RefreshSpecial/RefreshSpecial.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/StalePages/StalePages.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'StalePages' => array( 'StalePages' ), |
| 12 | +); |
Property changes on: trunk/extensions/StalePages/StalePages.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/StalePages/StalePages.php |
— | — | @@ -15,27 +15,11 @@ |
16 | 16 | 'author' => 'Tim Laqua', |
17 | 17 | 'description' => 'Generates a list of pages that have not been edited recently', |
18 | 18 | 'descriptionmsg' => 'stalepages-desc', |
19 | | - 'version' => '0.7' |
| 19 | + 'version' => '0.8' |
20 | 20 | ); |
21 | 21 | |
22 | | -if( version_compare( $wgVersion, '1.11', '>=' ) ) { |
23 | | - $wgExtensionMessagesFiles['Stalepages'] = $dirname(__FILE__) . '/StalePages.i18n.php'; |
24 | | -} else { |
25 | | - $wgExtensionFunctions[] = 'efStalepages'; |
26 | | -} |
27 | | - |
28 | | -$wgAutoloadClasses['Stalepages'] = dirname(__FILE__) . '/StalePages_body.php'; |
29 | | - |
| 22 | +$dir = dirname(__FILE__) . '/'; |
| 23 | +$wgExtensionMessagesFiles['Stalepages'] = $dir . 'StalePages.i18n.php'; |
| 24 | +$wgExtensionAliasesFiles['Stalepages'] = $dir . 'Stalepages.alias.php'; |
| 25 | +$wgAutoloadClasses['Stalepages'] = $dir . 'StalePages_body.php'; |
30 | 26 | $wgSpecialPages['Stalepages'] = 'Stalepages'; |
31 | | - |
32 | | - |
33 | | -///Message Cache population for versions that did not support $wgExtensionFunctions |
34 | | -function efStalePages() { |
35 | | - global $wgMessageCache; |
36 | | - |
37 | | - #Add Messages |
38 | | - require( dirname( __FILE__ ) . '/StalePages.i18n.php' ); |
39 | | - foreach( $messages as $key => $value ) { |
40 | | - $wgMessageCache->addMessages( $messages[$key], $key ); |
41 | | - } |
42 | | -} |
Index: trunk/extensions/SpecialForm/SpecialForm.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'Form' => array( 'Form' ), |
| 12 | +); |
Property changes on: trunk/extensions/SpecialForm/SpecialForm.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/SpecialForm/SpecialForm.body.php |
— | — | @@ -30,12 +30,13 @@ |
31 | 31 | class SpecialForm extends SpecialPage { |
32 | 32 | function SpecialForm() { |
33 | 33 | SpecialPage::SpecialPage("Form"); |
34 | | - self::loadMessages(); |
35 | 34 | } |
36 | 35 | |
37 | 36 | function execute( $par ) { |
38 | 37 | global $wgRequest, $wgOut; |
39 | 38 | |
| 39 | + wfLoadExtensionMessages( 'Form' ); |
| 40 | + |
40 | 41 | # Must have a name, like Special:Form/Nameofform |
41 | 42 | # XXX: instead of an error, show a list of available forms |
42 | 43 | |
— | — | @@ -62,18 +63,6 @@ |
63 | 64 | } |
64 | 65 | } |
65 | 66 | |
66 | | - # Load form-related messages, per special-page guidelines |
67 | | - |
68 | | - function loadMessages() { |
69 | | - static $messagesLoaded = false; |
70 | | - |
71 | | - if ( $messagesLoaded ) return true; |
72 | | - wfLoadExtensionMessages('SpecialForm'); |
73 | | - $messagesLoaded = true; |
74 | | - |
75 | | - return true; |
76 | | - } |
77 | | - |
78 | 67 | # Load and parse a form article from the DB |
79 | 68 | |
80 | 69 | function loadForm($name) { |
Index: trunk/extensions/SpecialForm/SpecialForm.setup.php |
— | — | @@ -25,16 +25,13 @@ |
26 | 26 | exit( 1 ); |
27 | 27 | } |
28 | 28 | |
29 | | -define('SPECIALFORM_VERSION', '0.3'); |
| 29 | +define('SPECIALFORM_VERSION', '0.4'); |
30 | 30 | |
31 | 31 | $dir = dirname(__FILE__) . '/'; |
32 | 32 | $wgAutoloadClasses['SpecialForm'] = $dir . '/SpecialForm.body.php'; # Tell MediaWiki to load the extension body. |
33 | 33 | $wgExtensionMessagesFiles['SpecialForm'] = $dir . 'SpecialForm.i18n.php'; #Load internationalization file |
| 34 | +$wgExtensionAliasesFiles['Form'] = $dir . 'SpecialForm.alias.php'; |
34 | 35 | $wgSpecialPages['Form'] = 'SpecialForm'; # Let MediaWiki know about your new special page. |
35 | | -$wgHooks['LoadAllMessages'][] = 'SpecialForm::loadMessages'; # Load the internationalization messages for your special page. |
36 | | -$wgHooks['LanguageGetSpecialPageAliases'][] = 'formLocalizedPageName'; # Add any aliases for the special page. |
37 | | -# Typo in versions of MW earlier than 1.11.x (?) |
38 | | -$wgHooks['LangugeGetSpecialPageAliases'][] = 'formLocalizedPageName'; # Add any aliases for the special page. |
39 | 36 | |
40 | 37 | $wgExtensionCredits['specialpage'][] = array( |
41 | 38 | 'name' => 'Form', |
— | — | @@ -46,17 +43,4 @@ |
47 | 44 | ); |
48 | 45 | |
49 | 46 | # Use recaptcha; default to false |
50 | | - |
51 | 47 | $wgSpecialFormRecaptcha = false; |
52 | | - |
53 | | -function formLocalizedPageName(&$specialPageArray, $code) { |
54 | | - # The localized title of the special page is among the messages of the extension: |
55 | | - SpecialForm::loadMessages(); |
56 | | - $text = wfMsgForContent('form'); |
57 | | - |
58 | | - # Convert from title in text form to DBKey and put it into the alias array: |
59 | | - $title = Title::newFromText($text); |
60 | | - $specialPageArray['Form'][] = $title->getDBkey(); |
61 | | - |
62 | | - return true; |
63 | | -} |
\ No newline at end of file |
Index: trunk/extensions/TodoTasks/SpecialTaskList.php |
— | — | @@ -5,12 +5,12 @@ |
6 | 6 | modify it under the terms of the GNU General Public License |
7 | 7 | as published by the Free Software Foundation, version 2 |
8 | 8 | of the License. |
9 | | - |
| 9 | + |
10 | 10 | This program is distributed in the hope that it will be useful, |
11 | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | 13 | GNU General Public License for more details. |
14 | | - |
| 14 | + |
15 | 15 | You should have received a copy of the GNU General Public License |
16 | 16 | along with this program; if not, write to the Free Software |
17 | 17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | |
20 | 20 | if (!defined('MEDIAWIKI')) die(); |
21 | 21 | |
22 | | -$wgTodoTasksExtensionVersion = '0.9.6'; |
| 22 | +$wgTodoTasksExtensionVersion = '0.9.7'; |
23 | 23 | |
24 | 24 | $wgExtensionCredits['parserhook'][] = array( |
25 | 25 | 'version' => $wgTodoTasksExtensionVersion, |
— | — | @@ -43,10 +43,12 @@ |
44 | 44 | $dir = dirname(__FILE__) . '/'; |
45 | 45 | $wgAutoloadClasses['TaskList'] = $dir . 'SpecialTaskList_body.php'; |
46 | 46 | $wgExtensionMessagesFiles['TaskList'] = $dir . 'SpecialTaskList.i18n.php'; |
| 47 | +$wgExtensionAliasesFiles['TaskList'] = $dir . 'SpecialTaskList.alias.php'; |
47 | 48 | $wgSpecialPages['TaskList'] = 'TaskList'; |
| 49 | + |
48 | 50 | if ($wgUseProjects) { |
49 | | - $wgAutoloadClasses['TaskListByProject'] = $dir . 'SpecialTaskList_body.php'; |
50 | | - $wgSpecialPages['TaskListByProject'] = 'TaskListByProject'; |
| 51 | + $wgAutoloadClasses['TaskListByProject'] = $dir . 'SpecialTaskList_body.php'; |
| 52 | + $wgSpecialPages['TaskListByProject'] = 'TaskListByProject'; |
51 | 53 | } |
52 | 54 | $wgHooks['LoadAllMessages'][] = 'TaskList::loadMessages'; |
53 | 55 | $wgHooks['LoadAllMessages'][] = 'TaskListByProject::loadMessages'; |
Index: trunk/extensions/TodoTasks/SpecialTaskList.alias.php |
— | — | @@ -0,0 +1,12 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'TaskList' => array( 'TaskList' ), |
| 12 | + 'TaskListByProject' => array( 'TaskListByProject' ), |
| 13 | +); |
Property changes on: trunk/extensions/TodoTasks/SpecialTaskList.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 14 | + native |
Added: svn:keywords |
2 | 15 | + Id |
Index: trunk/extensions/Player/Player.php |
— | — | @@ -30,6 +30,7 @@ |
31 | 31 | |
32 | 32 | $dir = dirname(__FILE__) . '/'; |
33 | 33 | $wgExtensionMessagesFiles['Player'] = $dir . 'Player.i18n.php'; |
| 34 | +$wgExtensionAliasesFiles['Player'] = $dir . 'Player.alias.php'; |
34 | 35 | $wgAutoloadClasses['Player'] = $dir . 'PlayerClass.php'; |
35 | 36 | $wgAutoloadClasses['SpecialPlayer'] = $dir . 'SpecialPlayer.php'; |
36 | 37 | $wgSpecialPages['Player'] = 'SpecialPlayer'; |
Index: trunk/extensions/Player/Player.alias.php |
— | — | @@ -0,0 +1,14 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$aliases = array(); |
| 11 | + |
| 12 | +/** English */ |
| 13 | +$aliases['en'] = array( |
| 14 | + 'Player' => array( 'Player' ), |
| 15 | +); |
Property changes on: trunk/extensions/Player/Player.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 16 | + native |
Added: svn:keywords |
2 | 17 | + Id |
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt |
— | — | @@ -548,6 +548,8 @@ |
549 | 549 | Random Users With Avatars |
550 | 550 | descmsg = random-users-avatars-desc |
551 | 551 | |
| 552 | +Refresh Special |
| 553 | + |
552 | 554 | Regex Block |
553 | 555 | file = regexBlock/regexBlock.i18n.php |
554 | 556 | |
Index: trunk/extensions/Translate/aliases.txt |
— | — | @@ -163,15 +163,42 @@ |
164 | 164 | Password reset |
165 | 165 | file = PasswordReset/PasswordReset.alias.php |
166 | 166 | |
| 167 | +Patroller |
| 168 | +file = Patroller/Patroller.alias.php |
| 169 | + |
| 170 | +Piwik |
| 171 | +file = Piwik/Piwik.alias.php |
| 172 | + |
| 173 | +Player |
| 174 | +file = Player/Player.alias.php |
| 175 | + |
| 176 | +Profile monitor |
| 177 | +file = ProfileMonitor/ProfileMonitor.alias.php |
| 178 | + |
167 | 179 | Purge cache |
168 | 180 | file = PurgeCache/PurgeCache.alias.php |
169 | 181 | |
170 | 182 | POV watch |
171 | 183 | file = PovWatch/PovWatch.alias.php |
172 | 184 | |
| 185 | +Random in category |
| 186 | +file = RandomInCategory/SpecialRandomInCategory.alias.php |
| 187 | + |
| 188 | +Refresh special |
| 189 | +file = RefreshSpecial/RefreshSpecial.alias.php |
| 190 | + |
173 | 191 | Rename user |
174 | 192 | file = Renameuser/SpecialRenameuser.alias.php |
175 | 193 | |
| 194 | +Replace text |
| 195 | +file = ReplaceText/ReplaceText.alias.php |
| 196 | + |
| 197 | +Semantic drilldown |
| 198 | +file = SemanticDrilldown/languages/SD_Aliases.php |
| 199 | + |
| 200 | +Semantic forms |
| 201 | +file = SemanticForms/languages/SF_Aliases.php |
| 202 | + |
176 | 203 | Semantic MediaWiki |
177 | 204 | file = SemanticMediaWiki/languages/SMW_Aliases.php |
178 | 205 | |
— | — | @@ -190,8 +217,41 @@ |
191 | 218 | Spam regex |
192 | 219 | file = SpamRegex/SpamRegex.alias.php |
193 | 220 | |
| 221 | +Special form |
| 222 | +file = SpecialForm/SpecialForm.alias.php |
| 223 | + |
| 224 | +Stale pages |
| 225 | +file = StalePages/StalePages.alias.php |
| 226 | + |
| 227 | +Template link |
| 228 | +file = TemplateLink/TemplateLink.alias.php |
| 229 | + |
| 230 | +Todo tasks |
| 231 | +file = TodoTasks/SpecialTaskList.alias.php |
| 232 | + |
194 | 233 | Translate |
195 | 234 | file = Translate/Translate.alias.php |
196 | 235 | |
197 | 236 | Usage statistics |
198 | 237 | file = UsageStatistics/SpecialUserStats.alias.php |
| 238 | + |
| 239 | +User merge |
| 240 | +file = UserMerge/UserMerge.alias.php |
| 241 | + |
| 242 | +Vote |
| 243 | +file = Vote/Vote.alias.php |
| 244 | + |
| 245 | +Watch subpages |
| 246 | +file = WatchSubpages/WatchSubpages.alias.php |
| 247 | + |
| 248 | +What is my IP |
| 249 | +file = WhatIsMyIP/WhatIsMyIP.alias.php |
| 250 | + |
| 251 | +White list |
| 252 | +file = WhiteList/SpecialWhitelistEdit.alias.php |
| 253 | + |
| 254 | +Who is watching |
| 255 | +file = WhoIsWatching/SpecialWhoIsWatching.alias.php |
| 256 | + |
| 257 | +Who is online |
| 258 | +file = WhosOnline/WhosOnline.alias.php |
Index: trunk/extensions/ProfileMonitor/ProfileMonitor.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'ProfileMonitor' => array( 'ProfileMonitor' ), |
| 12 | +); |
Property changes on: trunk/extensions/ProfileMonitor/ProfileMonitor.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/ProfileMonitor/ProfileMonitor.php |
— | — | @@ -21,6 +21,7 @@ |
22 | 22 | |
23 | 23 | $dir = dirname(__FILE__) . '/'; |
24 | 24 | $wgExtensionMessagesFiles['ProfileMonitor'] = $dir . 'ProfileMonitor.i18n.php'; |
| 25 | +$wgExtensionAliasesFiles['ProfileMonitor'] = $dir . 'ProfileMonitor.alias.php'; |
25 | 26 | $wgAutoloadClasses['ProfileMonitor'] = $dir . 'ProfileMonitor.class.php'; |
26 | 27 | $wgSpecialPages['Profiling'] = 'ProfileMonitor'; |
27 | 28 | |
Index: trunk/extensions/WatchSubpages/WatchSubpages.php |
— | — | @@ -27,5 +27,6 @@ |
28 | 28 | |
29 | 29 | $dir = dirname(__FILE__) . '/'; |
30 | 30 | $wgExtensionMessagesFiles['WatchSubpages'] = $dir . 'WatchSubpages.i18n.php'; |
| 31 | +$wgExtensionAliasesFiles['WatchSubpages'] = $dir . 'WatchSubpages.alias.php'; |
31 | 32 | $wgAutoloadClasses['WatchSubpages'] = $dir . 'WatchSubpages_body.php'; |
32 | 33 | $wgSpecialPages['WatchSubpages'] = 'WatchSubpages'; |
Index: trunk/extensions/WatchSubpages/WatchSubpages.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'WatchSubpages' => array( 'WatchSubpages' ), |
| 12 | +); |
Property changes on: trunk/extensions/WatchSubpages/WatchSubpages.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/ReplaceText/ReplaceText.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | * the page provides a warning prompt to the user before doing the |
18 | 18 | * replacement, since it is not easily reversible. |
19 | 19 | * |
20 | | - * @version 0.2.5 |
| 20 | + * @version 0.2.6 |
21 | 21 | * @author Yaron Koren |
22 | 22 | */ |
23 | 23 | |
— | — | @@ -25,17 +25,19 @@ |
26 | 26 | // credits |
27 | 27 | $wgExtensionCredits['specialpage'][] = array( |
28 | 28 | 'name' => 'Replace Text', |
29 | | - 'version' => '0.2.5', |
| 29 | + 'version' => '0.2.6', |
30 | 30 | 'author' => 'Yaron Koren', |
31 | 31 | 'url' => 'http://www.mediawiki.org/wiki/Extension:Replace_Text', |
32 | 32 | 'description' => 'A special page that lets administrators run a global search-and-replace', |
33 | 33 | 'descriptionmsg' => 'replacetext-desc', |
34 | 34 | ); |
35 | 35 | |
36 | | -$wgExtensionMessagesFiles['ReplaceText'] = dirname( __FILE__ ) . '/ReplaceText.i18n.php'; |
| 36 | +$dir = dirname(__FILE__) . '/'; |
| 37 | +$wgExtensionMessagesFiles['ReplaceText'] = $dir . 'ReplaceText.i18n.php'; |
| 38 | +$wgExtensionAliasesFiles['ReplaceText'] = $dir . 'ReplaceText.alias.php'; |
37 | 39 | $wgJobClasses['replaceText'] = 'ReplaceTextJob'; |
38 | 40 | |
39 | 41 | // This extension uses its own permission type, 'replacetext' |
40 | 42 | $wgSpecialPages['ReplaceText'] = array('ReplaceText', 'replacetext'); |
41 | | -$wgAutoloadClasses['ReplaceText'] = dirname( __FILE__ ) . '/SpecialReplaceText.php'; |
42 | | -$wgAutoloadClasses['ReplaceTextJob'] = dirname( __FILE__ ) . '/ReplaceTextJob.php'; |
| 43 | +$wgAutoloadClasses['ReplaceText'] = $dir . 'SpecialReplaceText.php'; |
| 44 | +$wgAutoloadClasses['ReplaceTextJob'] = $dir . 'ReplaceTextJob.php'; |
Index: trunk/extensions/ReplaceText/ReplaceText.alias.php |
— | — | @@ -0,0 +1,14 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$aliases = array(); |
| 11 | + |
| 12 | +/** English */ |
| 13 | +$aliases['en'] = array( |
| 14 | + 'ReplaceText' => array( 'ReplaceText' ), |
| 15 | +); |
Property changes on: trunk/extensions/ReplaceText/ReplaceText.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 16 | + native |
Added: svn:keywords |
2 | 17 | + Id |
Index: trunk/extensions/SemanticDrilldown/includes/SD_GlobalFunctions.php |
— | — | @@ -30,6 +30,7 @@ |
31 | 31 | require_once($sdgIP . '/languages/SD_Language.php'); |
32 | 32 | |
33 | 33 | $wgExtensionMessagesFiles['SemanticDrilldown'] = $sdgIP . '/languages/SD_Messages.php'; |
| 34 | +$wgExtensionAliasesFiles['ReplaceText'] = $sdgIP . '/languages/SD_Aliases.php'; |
34 | 35 | |
35 | 36 | // register all special pages and other classes |
36 | 37 | $wgSpecialPages['Filters'] = 'SDFilters'; |
Index: trunk/extensions/SemanticDrilldown/languages/SD_Aliases.php |
— | — | @@ -0,0 +1,16 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + * @file |
| 7 | + * @ingroup Extensions |
| 8 | + */ |
| 9 | + |
| 10 | +$aliases = array(); |
| 11 | + |
| 12 | +/** English */ |
| 13 | +$aliases['en'] = array( |
| 14 | + 'BrowseData' => array( 'BrowseData' ), |
| 15 | + 'CreateFilter' => array( 'CreateFilter' ), |
| 16 | + 'Filters' => array( 'Filters' ), |
| 17 | +); |
Property changes on: trunk/extensions/SemanticDrilldown/languages/SD_Aliases.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 18 | + native |
Added: svn:keywords |
2 | 19 | + Id |
Index: trunk/extensions/TemplateLink/TemplateLink.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'TemplateLink' => array( 'TemplateLink' ), |
| 12 | +); |
Property changes on: trunk/extensions/TemplateLink/TemplateLink.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |
Index: trunk/extensions/TemplateLink/TemplateLink.setup.php |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | |
31 | 31 | $wgExtensionCredits['parserhook'][] = array( |
32 | 32 | 'name' => 'TemplateLink', |
33 | | - 'version' => '1.1', |
| 33 | + 'version' => '1.2', |
34 | 34 | 'author' =>'Magnus Manske', |
35 | 35 | 'url' => 'http://www.mediawiki.org/wiki/Extension:TemplateLink', |
36 | 36 | 'description' => 'This extension can show a template as a new page' |
— | — | @@ -37,6 +37,7 @@ |
38 | 38 | |
39 | 39 | $dir = dirname(__FILE__) . '/'; |
40 | 40 | $wgExtensionMessagesFiles['TemplateLink'] = $dir . 'TemplateLink.i18n.php'; |
| 41 | +$wgExtensionAliasesFiles['TemplateLink'] = $dir . 'TemplateLink.alias.php'; |
41 | 42 | $wgAutoloadClasses['TemplateLink'] = $dir . 'TemplateLink.body.php'; # Tell MediaWiki to load the extension body. |
42 | 43 | $wgSpecialPages['TemplateLink'] = 'TemplateLink'; # Let MediaWiki know about your new special page. |
43 | 44 | |
Index: trunk/extensions/UserMerge/UserMerge.php |
— | — | @@ -16,13 +16,14 @@ |
17 | 17 | 'author' => 'Tim Laqua', |
18 | 18 | 'description' => "Merges references from one user to another user in the Wiki database - will also delete old users following merge. Requires 'usermerge' privileges.", |
19 | 19 | 'descriptionmsg' => 'usermerge-desc', |
20 | | - 'version' => '1.5' |
| 20 | + 'version' => '1.6' |
21 | 21 | ); |
22 | 22 | |
23 | 23 | $dir = dirname(__FILE__) . '/'; |
24 | 24 | $wgAutoloadClasses['UserMerge'] = $dir . 'UserMerge_body.php'; |
25 | 25 | |
26 | 26 | $wgExtensionMessagesFiles['UserMerge'] = $dir . 'UserMerge.i18n.php'; |
| 27 | +$wgExtensionAliasesFiles['UserMerge'] = $dir . 'UserMerge.alias.php'; |
27 | 28 | $wgSpecialPages['UserMerge'] = 'UserMerge'; |
28 | 29 | $wgSpecialPageGroups['UserMerge'] = 'users'; |
29 | 30 | |
Index: trunk/extensions/UserMerge/UserMerge.alias.php |
— | — | @@ -0,0 +1,11 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Aliases for special pages |
| 5 | + * |
| 6 | + */ |
| 7 | + |
| 8 | +$aliases = array(); |
| 9 | + |
| 10 | +$aliases['en'] = array( |
| 11 | + 'UserMerge' => array( 'UserMerge' ), |
| 12 | +); |
Property changes on: trunk/extensions/UserMerge/UserMerge.alias.php |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 13 | + native |
Added: svn:keywords |
2 | 14 | + Id |