r28548 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r28547‎ | r28548 | r28549 >
Date:18:21, 16 December 2007
Author:siebrand
Status:old
Tags:
Comment:
revert 28376, 28377, 28378
Modified paths:
  • /trunk/extensions/PrivateNamespaces/PrivateNamespaces.php (modified) (history)
  • /trunk/extensions/PurgeCache/PurgeCache.php (modified) (history)
  • /trunk/extensions/RDF/Rdf.php (modified) (history)
  • /trunk/extensions/RenderHash/RenderHash.php (modified) (history)
  • /trunk/extensions/Resign/SpecialResign.php (modified) (history)
  • /trunk/extensions/Seealso/Seealso.php (modified) (history)
  • /trunk/extensions/SemanticDrilldown/includes/SD_GlobalFunctions.php (modified) (history)
  • /trunk/extensions/TitleBlacklist/TitleBlacklist.php (modified) (history)
  • /trunk/extensions/TodoTasks/SpecialTaskList.php (modified) (history)
  • /trunk/extensions/Tooltip/Tooltip.php (modified) (history)
  • /trunk/extensions/UserContactLinks/UserSignature.php (modified) (history)
  • /trunk/extensions/UserImages/UserImages.php (modified) (history)
  • /trunk/extensions/UserMerge/UserMerge.php (modified) (history)
  • /trunk/extensions/UserRightsNotif/UserRightsNotif.php (modified) (history)
  • /trunk/extensions/Userip/Userip.php (modified) (history)
  • /trunk/extensions/UsernameBlacklist/UsernameBlacklist.php (modified) (history)
  • /trunk/extensions/Vote/Vote.php (modified) (history)
  • /trunk/extensions/Watchers/Watchers.php (modified) (history)
  • /trunk/extensions/WebStore/WebStore.php (modified) (history)
  • /trunk/extensions/WhoIsWatching/SpecialWhoIsWatching.php (modified) (history)
  • /trunk/extensions/Wikidata/AddPrefs.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialConceptMapping.php (modified) (history)
  • /trunk/extensions/Wikidata/OmegaWiki/SpecialCopy.php (modified) (history)
  • /trunk/extensions/Wikidata/SpecialLanguages.php (modified) (history)
  • /trunk/extensions/WiktionaryInflection/Inflection.php (modified) (history)
  • /trunk/extensions/rss/RSSNews.php (modified) (history)
  • /trunk/extensions/timeline/Timeline.php (modified) (history)
  • /trunk/extensions/wikiforum/wikiforum.php (modified) (history)
  • /trunk/extensions/wikihiero/wikihiero.php (modified) (history)
  • /trunk/extensions/wikiwyg/share/MediaWiki/extensions/CreatePage/SpecialCreatePage.php (modified) (history)
  • /trunk/extensions/wikiwyg/share/MediaWiki/extensions/MediaWikiWyg.php (modified) (history)
  • /trunk/extensions/wikiwyg/share/MediaWiki/extensions/WikiwygEditing/WikiwygEditing.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PrivateNamespaces/PrivateNamespaces.php
@@ -26,7 +26,7 @@
2727 /**
2828 * A really simple extension to allow for making certain namespaces
2929 * "private"--that is, to prevent users lacking necessary rights from
30 - * reading, editing, moving, etc., any page in that namespace. It
 30+ * reading, editing, moving, etc., any page in that namespace. It
3131 * should cover transclusion, searching (though the titles will still
3232 * be visible), diffs, Special:Export, history paging, etc.
3333 *
@@ -38,7 +38,7 @@
3939 * careful when installing new extensions as they may open up a variety
4040 * of new ways to get around what this code aims to do.
4141 *
42 - * USAGE:
 42+ * USAGE:
4343 * Add require_once("$IP/extensions/PrivateNamespaces/PrivateNamespaces.php");
4444 * to your LocalSetings.php.
4545 *
@@ -48,14 +48,6 @@
4949 *
5050 */
5151
52 -$wgExtensionCredits['parserhook'][] = array(
53 - 'name' => 'PrivateNamespaces',
54 - 'version' => '1.1',
55 - 'author' => 'Daniel Cannon',
56 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Private Namespaces',
57 - 'description' => 'Allow for making certain namespaces private',
58 -);
59 -
6052 /**
6153 * An array mapping namespace ids to the right needed to view or edit
6254 * pages in the namespace.
@@ -65,7 +57,7 @@
6658 /**
6759 * Hook userCan to perform additional validation checks.
6860 */
69 -$wgHooks['userCan'][] = 'wfCheckIfPrivate';
 61+$wgHooks['userCan'][] = 'wfCheckIfPrivate';
7062
7163 /**
7264 * Hook BeforeParserFetchTemplateAndtitle to perform validation checks
@@ -78,10 +70,10 @@
7971 * then the user must have the specified right in order to perform
8072 * any action on the page.
8173 */
82 -function wfCheckIfPrivate( $title, $user, $action, &$result) {
 74+function wfCheckIfPrivate( $title, $user, $action, &$result) {
8375 global $wgPrivateNamespaces;
8476 if ( in_array( $title->getNamespace(), $wgPrivateNamespaces ) ) {
85 - if ( !$user->isAllowed( $wgPrivateNamespaces[
 77+ if ( !$user->isAllowed( $wgPrivateNamespaces[
8678 $title->getNamespace() ] ) ) {
8779 $result = false;
8880 return false;
@@ -92,9 +84,9 @@
9385 }
9486
9587 /**
96 - * Prevent the transcluding of a page whose read access is prevented by
 88+ * Prevent the transcluding of a page whose read access is prevented by
9789 * $wgPrivateNamespaces. NOTE: It may still be possible for a user who
98 - * has read access to a page to transclude in a public page and for that
 90+ * has read access to a page to transclude in a public page and for that
9991 * to then be cached and made visible to other users who shouldn't have
10092 * access to the content. We should, however, be able to hope that those
10193 * with restricted access would know better than to do so, however.
Index: trunk/extensions/WhoIsWatching/SpecialWhoIsWatching.php
@@ -10,12 +10,12 @@
1111 }
1212
1313 $wgExtensionCredits['specialpage'][] = array(
14 - 'version' => '0.3',
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.3',
 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'
2020 );
2121
2222 $wgAutoloadClasses['WhoIsWatching'] = dirname(__FILE__) . '/SpecialWhoIsWatching_body.php';
Index: trunk/extensions/SemanticDrilldown/includes/SD_GlobalFunctions.php
@@ -48,13 +48,8 @@
4949 /**********************************************/
5050 /***** credits (see "Special:Version") *****/
5151 /**********************************************/
52 - $wgExtensionCredits['specialpage'][]= array(
53 - 'name' => 'Semantic Drilldown',
54 - 'version' => SD_VERSION,
55 - 'author' => 'Yaron Koren',
56 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Semantic_Drilldown',
57 - 'description' => 'A drilldown interface for navigating through semantic data',
58 - );
 52+ $wgExtensionCredits['specialpage'][]= array('name'=>'Semantic Drilldown', 'version'=>SD_VERSION, 'author'=>'Yaron Koren',
 53+ 'url'=>'http://www.mediawiki.org/wiki/Extension:Semantic_Drilldown', 'description' => 'A drilldown interface for navigating through semantic data');
5954
6055 return true;
6156 }
@@ -240,7 +235,7 @@
241236 function sdfLoadFiltersForCategory($category) {
242237 global $sdgContLang;
243238 $sd_props = $sdgContLang->getSpecialPropertiesArray();
244 -
 239+
245240 $filters = array();
246241 $filter_names = sdfGetValuesForProperty(str_replace(' ', '_', $category), NS_CATEGORY, $sd_props[SD_SP_HAS_FILTER], true, SD_NS_FILTER);
247242 foreach ($filter_names as $filter_name) {
@@ -284,3 +279,5 @@
285280 }
286281 return $pages;
287282 }
 283+
 284+?>
Index: trunk/extensions/WebStore/WebStore.php
@@ -1,5 +1,6 @@
22 <?php
33
 4+
45 $wgWebStoreSettings = array(
56 /**
67 * Set this in LocalSettings.php to an array of IP ranges allowed to access
@@ -67,11 +68,10 @@
6869 $wgHooks['LoadAllMessages'][] = 'WebStoreCommon::initialiseMessages';
6970
7071 $wgExtensionCredits['other'][] = array(
71 - 'name' => 'WebStore',
72 - 'version' => '1.1',
73 - 'url' => 'http://www.mediawiki.org/wiki/Extension:WebStore',
74 - 'author' => 'Tim Starling',
 72+ 'name' => 'WebStore',
 73+ 'author' => 'Tim Starling',
7574 'description' => 'Web-only (non-NFS) file storage middleware',
7675 );
7776
7877 define( 'MW_WEBSTORE_ENABLED', 1 );
 78+
Index: trunk/extensions/wikiwyg/share/MediaWiki/extensions/CreatePage/SpecialCreatePage.php
@@ -11,11 +11,10 @@
1212
1313 $wgExtensionFunctions[] = 'wfCreatePageSetup';
1414 $wgExtensionCredits['specialpage'][] = array(
15 - 'name' => 'Create Page',
16 - 'version' => '1.1',
17 - 'author' => 'Bartek Lapinski',
18 - 'url' => 'http://www.wikia.com',
19 - 'description' => 'Allows to create a new page - with the wysiwyg editor',
 15+ 'name' => 'Create Page',
 16+ 'author' => 'Bartek Lapinski',
 17+ 'url' => 'http://www.wikia.com' ,
 18+ 'description' => 'allows to create a new page - with the wysiwyg editor '
2019 );
2120
2221 /* special page init */
@@ -40,7 +39,7 @@
4140 'createpage_show_cloud' => '[show category cloud]' ,
4241 'createpage_hide_cloud' => '[hide category cloud]' ,
4342 'createpage_alternate_creation' => 'or click $1 to use original editor' ,
44 - 'createpage_categories_help' => 'Categories help organize information in this wiki. Please choose from the list below or type a new one.'
 43+ 'createpage_categories_help' => 'Categories help organize information in this wiki. Please choose from the list below or type a new one.'
4544 )
4645 );
4746 SpecialPage::addPage(new SpecialPage('Createpage', '', true, 'wfCreatePageSpecial', false));
@@ -215,7 +214,7 @@
216215 <tr>
217216 <td class=\"editpage_header\">".wfMsg ('createpage_categories')."</td>
218217 <td>
219 - <textarea name=\"category\" id=\"category\" rows=\"1\" cols=\"80\" /></textarea>
 218+ <textarea name=\"category\" id=\"category\" rows=\"1\" cols=\"80\" /></textarea>
220219 <div id=\"category_cloud_wrapper\" class=\editpage_inside\">
221220 <div id=\"editpage_cloud_section\" style=\"line-height: 22pt; border: 1px solid gray; padding: 15px 15px 15px 15px\"> ".$cloud_html."
222221 </div>
@@ -271,3 +270,5 @@
272271 $wgOut->setSubTitle ( wfMsg ('createpage_success_subtitle', wfMsg('createpage_'.$this->mMode) ) ) ;
273272 }
274273 }
 274+
 275+?>
Index: trunk/extensions/wikiwyg/share/MediaWiki/extensions/MediaWikiWyg.php
@@ -1,4 +1,4 @@
2 -<?php
 2+<?PHP
33
44 global $wgHooks, $wgInPageEnabled ;
55 if (!isset($wgInPageEnabled) || ($wgInPageEnabled == false)) {
@@ -12,17 +12,17 @@
1313
1414 $wgExtensionFunctions[] = 'registerWikiwygExtension';
1515 $wgExtensionCredits['other'][] = array(
16 - 'name' => 'MediaWikiWyg',
17 - 'author' => '[http://svn.wikiwyg.net/code/trunk/wikiwyg/AUTHORS author list], Bartek Lapinski',
18 - 'version' => '0.20',
19 - 'url' => 'http://www.wikiwyg.net, http://www.wikia.com',
20 - 'description' => 'Mediawiki integration of the Wikiwyg WYSIWYG wiki editor',
 16+ 'name' => 'MediaWikiWyg',
 17+ 'author' => 'http://svn.wikiwyg.net/code/trunk/wikiwyg/AUTHORS, Bartek Lapinski',
 18+ 'version' => 0.20,
 19+ 'url' => 'http://www.wikiwyg.net, http://www.wikia.com',
 20+ 'description' => 'Mediawiki integration of the Wikiwyg WYSIWYG wiki editor'
2121 );
2222
2323 function wfGetDependingOnSkin () {
2424 $useInPageTrue = '' ;
2525 global $wgCookiePrefix, $wgUser, $wgInPageEnabled ;
26 -
 26+
2727 /* do not forget about editor disabled from variable... */
2828 if (!$wgInPageEnabled || !isset ($wgInPageEnabled)) {
2929 return 0 ;
@@ -352,7 +352,7 @@
353353 $edittime = $epage->mArticle->getTimestamp();
354354 $newtext = $epage->mArticle->replaceSection(
355355 $section, $text, '', $edittime );
356 -
 356+
357357 $newtext = $epage->mArticle->preSaveTransform( $newtext );
358358 $oldtitle = wfMsgExt( 'currentrev', array('parseinline') );
359359 $newtitle = wfMsgExt( 'yourtext', array('parseinline') );
@@ -366,7 +366,7 @@
367367
368368 $diffdiv = '<div id="wikiDiff">' . $difftext . '</div>';
369369 $wgOut->addHTML ($diffdiv) ;
370 -
 370+
371371 }
372372 }
373373
@@ -440,3 +440,5 @@
441441 }
442442
443443 } # End if(defined MEDIAWIKI)
 444+
 445+?>
Index: trunk/extensions/wikiwyg/share/MediaWiki/extensions/WikiwygEditing/WikiwygEditing.php
@@ -1,4 +1,4 @@
2 -<?php
 2+<?PHP
33
44 global $wgHooks;
55 $wgHooks['EditPage::showEditForm:initial'][] = 'WikiwygAlternateEdit' ;
@@ -7,11 +7,11 @@
88
99 $wgExtensionFunctions[] = 'registerWikiwygEditing';
1010 $wgExtensionCredits['other'][] = array(
11 - 'name' => 'WikiwygEditing',
12 - 'author' => 'Bartek Lapinski',
13 - 'version' => '1.0',
14 - 'url' => 'http://www.wikia.com',
15 - 'description' => 'MediaWiki integration of the Wikiwyg WYSIWYG wiki editor - for full page editing',
 11+ 'name' => 'WikiwygEditing' ,
 12+ 'author' => 'Bartek Lapinski' ,
 13+ 'version' => 1.0 ,
 14+ 'url' => 'http://www.wikia.com' ,
 15+ 'description' => 'Mediawiki integration of the Wikiwyg WYSIWYG wiki editor - for full page editing '
1616 );
1717
1818 function registerWikiwygEditing () {
@@ -42,14 +42,14 @@
4343 'wikiwyg_editing_here' => 'here' ,
4444 'wikiwyg_editing_this' => 'this'
4545 )
46 - );
 46+ );
4747
4848 /* in-page disabled automatically disables this loading */
4949 if ( wfGetDependingOnSkin () == 0 ) {
5050 return true ;
5151 }
5252 if (! isset($wgWikiwygPath)) {
53 - $wgWikiwygPath = $wgScriptPath . "/extensions/wikiwyg";
 53+ $wgWikiwygPath = $wgScriptPath . "/extensions/wikiwyg";
5454 }
5555 if (! isset($wgWikiwygJsPath)) {
5656 $wgWikiwygJsPath = "$wgWikiwygPath/share/MediaWiki";
@@ -87,7 +87,7 @@
8888 $nocloud_link = "<a href=\"".$fixed_art_path.$epage->mArticle->mTitle->getPrefixedUrl()."?action=edit&categoryCloud=off\" >".wfMsg ('wikiwyg_editing_this')."</a>" ;
8989 } else {
9090 $nocloud_link = "<a href=\"".$fixed_art_path.$epage->mArticle->mTitle->getPrefixedUrl()."?action=edit&categoryCloud=on\" >".wfMsg ('wikiwyg_editing_this')."</a>" ;
91 - $subtitle_text .= wfMsg('wikiwyg_use_cloud', $nocloud_link) ;
 91+ $subtitle_text .= wfMsg('wikiwyg_use_cloud', $nocloud_link) ;
9292 }
9393
9494 $wgOut->addHTML ("<div id=\"wikiwyg_cancel_form\" style=\"display:none;\">
@@ -114,7 +114,7 @@
115115 $wgOut->addHTML ("
116116 <noscript>
117117 <style type=\"text/css\">
118 - #wpTextbox1 {
 118+ #wpTextbox1 {
119119 display: block !important ;
120120 }
121121 #WikiwygEditingLoadingMesg, #wikiwyg_lower_wrapper {
@@ -176,7 +176,9 @@
177177 </table>
178178 </div>
179179 <input type=\"hidden\" name=\"wpCategoryTagCount\", id=\"category_tag_count\" value=\"$num\" />
180 - ") ;
 180+ ") ;
181181 }
182182 return true ;
183183 }
 184+
 185+?>
Index: trunk/extensions/UserMerge/UserMerge.php
@@ -11,11 +11,11 @@
1212
1313 $wgExtensionFunctions[] = 'efUserMerge';
1414 $wgExtensionCredits['specialpage'][] = array(
15 - 'name'=>'User Merge and Delete',
16 - 'url'=>'http://www.mediawiki.org/wiki/Extension:User_Merge_and_Delete',
17 - 'author'=>'Tim Laqua',
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 - 'version'=>'1.3',
 15+ 'name'=>'User Merge and Delete',
 16+ 'url'=>'http://www.mediawiki.org/wiki/Extension:User_Merge_and_Delete',
 17+ 'author'=>'Tim Laqua',
 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+ 'version'=>'1.3'
2020 );
2121
2222 $wgAutoloadClasses['UserMerge'] = dirname(__FILE__) . '/UserMerge_body.php';
@@ -29,7 +29,7 @@
3030 foreach( $usermergeMessages as $key => $value ) {
3131 $wgMessageCache->addMessages( $usermergeMessages[$key], $key );
3232 }
33 -
 33+
3434 # Add a new log type
3535 global $wgLogTypes, $wgLogNames, $wgLogHeaders, $wgLogActions;
3636 $wgLogTypes[] = 'usermerge';
@@ -38,3 +38,4 @@
3939 $wgLogActions['usermerge/mergeuser'] = 'usermerge-success-log';
4040 $wgLogActions['usermerge/deleteuser'] = 'usermerge-userdeleted-log';
4141 }
 42+
Index: trunk/extensions/PurgeCache/PurgeCache.php
@@ -8,21 +8,12 @@
99 * @author Rob Church <robchur@gmail.com>
1010 * @licence Public domain
1111 */
12 -
 12+
1313 if( !defined( 'MEDIAWIKI' ) ) {
1414 echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
1515 exit( 1 );
1616 }
1717
18 -$wgExtensionCredits['specialpage'][] = array(
19 - 'name' => 'PurgeCache',
20 - 'version' => '1.1',
21 - 'url' => 'http://www.mediawiki.org/wiki/Extension:PurgeCache',
22 - 'author' => 'Rob Church',
23 - 'email' => 'robchur@gmail.com',
24 - 'description' => '[[Special:PurgeCache|Special page]] used to wipe the OBJECTCACHE table',
25 -);
26 -
2718 if ( !function_exists( 'extAddSpecialPage' ) ) {
2819 require( dirname(__FILE__) . '/../ExtensionFunctions.php' );
2920 }
@@ -30,3 +21,5 @@
3122
3223 $wgAvailableRights[] = 'purgecache';
3324 $wgGroupPermissions['developer']['purgecache'] = true;
 25+
 26+
Index: trunk/extensions/rss/RSSNews.php
@@ -4,13 +4,6 @@
55 # Adds news from an RSS feed to your wiki
66 # To use, include this file from your LocalSettings.php
77
8 -$wgExtensionCredits['other'][] = array(
9 - 'name' => 'RSSNews',
10 - 'version' => '1.1',
11 - 'url' => 'http://www.mediawiki.org/wiki/Extension:RSSNews',
12 - 'author' => 'Jens Frank',
13 - 'description' => 'Adds news from an RSS feed with the tag <nowiki><rss></nowiki>',
14 -);
158
169 $wgExtensionFunctions[] = "wfRSSFeedExtension";
1710
@@ -61,3 +54,5 @@
6255 $text .= "</ul></div>\n";
6356 return $text;
6457 }
 58+
 59+
Index: trunk/extensions/Vote/Vote.php
@@ -8,30 +8,28 @@
99 * @author Rob Church <robchur@gmail.com>
1010 * Please see the LICENCE file for terms of use and redistribution
1111 */
12 -
 12+
1313 if( defined( 'MEDIAWIKI' ) ) {
1414
1515 $wgAutoloadClasses['SpecialVote'] = dirname( __FILE__ ) . '/Vote.page.php';
1616 $wgSpecialPages['Vote'] = 'SpecialVote';
1717 $wgExtensionFunctions[] = 'efVote';
1818 $wgExtensionCredits['specialpage'][] = array(
19 - 'name' => 'Vote',
20 - 'version' => '1.1',
21 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Vote',
22 - 'author' => 'Rob Church',
23 - 'description' => 'Provides simple polling capabilities',
 19+ 'name' => 'Vote',
 20+ 'author' => 'Rob Church',
 21+ 'description' => 'Provides simple polling capabilities',
2422 );
25 -
 23+
2624 /**
2725 * Users who can vote
2826 */
2927 $wgGroupPermissions['user']['vote'] = true;
30 -
 28+
3129 /**
3230 * Users who can view vote results
3331 */
3432 $wgGroupPermissions['bureaucrat']['voteadmin'] = true;
35 -
 33+
3634 /**
3735 * Extension setup function
3836 */
@@ -42,7 +40,7 @@
4341 $wgMessageCache->addMessages( $messages, $lang );
4442 $wgHooks['SkinTemplateSetupPageCss'][] = 'efVoteCss';
4543 }
46 -
 44+
4745 /**
4846 * Add extra CSS to the skin
4947 */
@@ -59,4 +57,4 @@
6058 } else {
6159 echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
6260 exit( 1 ) ;
63 -}
 61+}
\ No newline at end of file
Index: trunk/extensions/Watchers/Watchers.php
@@ -18,11 +18,9 @@
1919 # Integrating into the MediaWiki environment
2020
2121 $wgExtensionCredits['Watchers'][] = array(
22 - 'name' => 'Watchers',
23 - 'version' => '1.1',
24 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Watchers',
25 - 'description' => 'An extension to show who is watching a page',
26 - 'author' => 'Magnus Manske',
 22+ 'name' => 'Watchers',
 23+ 'description' => 'An extension to show who is watching a page.',
 24+ 'author' => 'Magnus Manske'
2725 );
2826
2927 $dir = dirname(__FILE__) . '/';
Index: trunk/extensions/Resign/SpecialResign.php
@@ -11,10 +11,10 @@
1212
1313 $wgExtensionFunctions[] = 'wfSpecialResign';
1414 $wgExtensionCredits['specialpage'][] = array(
 15+ 'author' => 'Rotem Liss',
 16+ 'version' => '1.1',
1517 'name' => 'Resign',
16 - 'version' => '1.1',
1718 'url' => 'http://www.mediawiki.org/wiki/Extension:Resign',
18 - 'author' => 'Rotem Liss',
1919 'description' => 'Gives users the ability to remove their permissions',
2020 );
2121
Index: trunk/extensions/UserContactLinks/UserSignature.php
@@ -24,7 +24,7 @@
2525 'author' => 'Paul Grinberg',
2626 'email' => 'gri6507 at yahoo dot com',
2727 'url' => 'http://www.mediawiki.org/wiki/Extension:User_Contact_Links',
28 - 'description' => 'Provides the ability to simply and consistantly add other user names using ^^^user^^^ syntax',
 28+ 'description' => 'provides the ability to simply and consistantly add other user names using ^^^user^^^ syntax',
2929 );
3030
3131 $dir = dirname(__FILE__) . '/';
Index: trunk/extensions/Wikidata/SpecialLanguages.php
@@ -13,11 +13,8 @@
1414
1515 $wgExtensionFunctions[] = 'wfSpecialManageLanguages';
1616 $wgExtensionCredits['specialpage'][] = array(
17 - 'name' => 'Language manager',
18 - 'version' => '1.1',
19 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Wikidata',
20 - 'author' => 'Erik Moeller',
21 - 'description' => 'Add languages, runnable by users with the \'addlanguage\' right',
 17+ 'name' => 'Language manager',
 18+ 'author' => 'Erik Moeller',
2219 );
2320
2421 # Internationalisation file
@@ -36,7 +33,7 @@
3734 function SpecialLanguages() {
3835 SpecialPage::SpecialPage( 'Languages' );
3936 }
40 -
 37+
4138 function execute( $par ) {
4239 global $wgOut, $wgRequest, $wgTitle, $wgUser;
4340 $wgOut->setPageTitle(wfMsg('langman_title'));
@@ -58,7 +55,7 @@
5956 } else {
6057 $wgOut->addHTML('Adding language '.$langname.' with key '.$langiso6393.'.');
6158 $sql='INSERT INTO language(iso639_2,iso639_3,wikimedia_key) values('.$dbr->addQuotes($langiso6392).','.$dbr->addQuotes($langiso6393).','.$dbr->addQuotes($langwmf).')';
62 -
 59+
6360 $dbr->query($sql);
6461 $id=$dbr->insertId();
6562 $sql='INSERT INTO language_names(language_id,name_language_id,language_name) values ('.$id.',85,'.$dbr->addQuotes($langname).')';
@@ -123,6 +120,6 @@
124121
125122 }
126123 }
127 -
 124+
128125 SpecialPage::addPage( new SpecialLanguages );
129126 }
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialConceptMapping.php
@@ -13,11 +13,8 @@
1414
1515 $wgExtensionFunctions[] = 'wfSpecialConceptMapping';
1616 $wgExtensionCredits['specialpage'][] = array(
17 - 'name' => 'Concept Mapping',
18 - 'version' => '1.1',
19 - 'url' => 'http://www.mediawiki.org/wiki/Extension:OmegaWiki',
20 - 'description' => 'Create concept-mappings. Also provides a web-api',
21 - 'author' => 'Kim Bruning',
 17+ 'name' => 'foo',
 18+ 'author' => 'Kim Bruning',
2219 );
2320
2421 function wfSpecialConceptMapping() {
@@ -26,7 +23,7 @@
2724
2825 global $wgMessageCache;
2926 $wgMessageCache->addMessages(array('conceptmapping'=>'Wikidata: Concept mapping'),'en');
30 -
 27+
3128 require_once("Wikidata.php");
3229 require_once("WikiDataAPI.php");
3330 require_once("Utilities.php");
@@ -59,7 +56,7 @@
6057 } elseif ($action=="get_associated"){
6158 $this->get_associated();
6259 } else {
63 - $wgOut->addWikiText(wfMsgSc("conceptmapping_no_action_specified",$action));
 60+ $wgOut->addWikiText(wfMsgSc("conceptmapping_no_action_specified",$action));
6461 $wgOut->addWikiText(wfMsgSc("conceptmapping_help"));
6562 }
6663 }
@@ -68,7 +65,7 @@
6966
7067 global $wgOut, $wgRequest, $wgUser;
7168 $lang=$wgUser->getOption("language");
72 - require_once("forms.php");
 69+ require_once("forms.php");
7370 $wgOut->addHTML(wfMsgSc("conceptmapping_uitext"));
7471 $sets=wdGetDataSets();
7572 $options = array();
@@ -121,9 +118,9 @@
122119 }
123120 }
124121 }
125 - $wgOut->addHTML("<br>\n");
 122+ $wgOut->addHTML("<br>\n");
126123 }
127 - if (sizeOf($mappings)>1) {
 124+ if (sizeOf($mappings)>1) {
128125 createConceptMapping($mappings);
129126 $wgOut->addHTML(wfMsgSc("mapping_successful"));
130127 } else {
@@ -140,17 +137,17 @@
141138 return $html;
142139 }
143140
144 -
 141+
145142 protected function help() {
146143 global $wgOut;
147144 $wgOut->addWikiText("<h2>Help</h2>");
148145 $wgOut->addWikiText(wfMsgSc("conceptmapping_help"));
149146 }
150 -
 147+
151148 protected function insert() {
152 - global
 149+ global
153150 $wgRequest, $wgOut;
154 -
 151+
155152 # $wgRequest->getText( 'page' );
156153 $sets=wdGetDataSets();
157154 #$requests=$wgRequest->getValues();
@@ -163,7 +160,7 @@
164161
165162 $dm_id_ui=$dm_id; # Only for teh purdy
166163 if ($dm_id_ui==null)
167 - $dm_id_ui="unset";
 164+ $dm_id_ui="unset";
168165 $wgOut->addWikiText("$name ->$dm_id_ui");
169166 $map[$dc]=$dm_id;
170167 #$dbr=&wfGetDB(DB_MASTER);
@@ -172,7 +169,7 @@
173170 }
174171
175172 protected function get() {
176 - global
 173+ global
177174 $wgOut, $wgRequest;
178175 $concept_id=$wgRequest->getText("concept");
179176 $wgOut->addWikiText("<h2>".wfMsgSc("contents_of_mapping")."</h2>");
@@ -207,5 +204,6 @@
208205 }
209206
210207 SpecialPage::addPage( new SpecialConceptMapping );
211 -
 208+
212209 }
 210+
Index: trunk/extensions/Wikidata/OmegaWiki/SpecialCopy.php
@@ -2,7 +2,7 @@
33 if (!defined('MEDIAWIKI')) die();
44 /**
55 * A Special Page extension to copy defined meanings between datasets.
6 - *
 6+ *
77 * Copied over from SpecialConceptMapping.
88 * User Interface temporarily retained (but currently flawed)
99 * Web API will be implemented
@@ -18,11 +18,8 @@
1919
2020 $wgExtensionFunctions[] = 'wfSpecialCopy';
2121 $wgExtensionCredits['specialpage'][] = array(
22 - 'name' => 'SpecialCopy',
23 - 'version' => '1.1',
24 - 'url' => 'http://www.mediawiki.org/wiki/Extension:OmegaWiki',
25 - 'description' => 'Copy defined meanings between datasets',
26 - 'author' => 'Alan Smithee',
 22+ 'name' => 'SpecialCopy',
 23+ 'author' => 'Alan Smithee',
2724 );
2825
2926 function wfSpecialCopy() {
@@ -31,7 +28,7 @@
3229
3330 global $wgMessageCache;
3431 $wgMessageCache->addMessages(array('Copy'=>'Wikidata: Copy'),'en');
35 -
 32+
3633 require_once("Wikidata.php");
3734 require_once("WikiDataAPI.php");
3835 require_once("Utilities.php");
@@ -62,7 +59,7 @@
6360 } elseif ($action=="help"){
6461 $this->help();
6562 } else {
66 - $wgOut->addWikiText(wfMsgSc("no_action_specified",$action));
 63+ $wgOut->addWikiText(wfMsgSc("no_action_specified",$action));
6764 $wgOut->addWikiText(wfMsgSc("copy_help"));
6865 }
6966 }
@@ -75,7 +72,7 @@
7673
7774 }
7875
79 - /** display a helpful help message.
 76+ /** display a helpful help message.
8077 * (if desired)
8178 */
8279 protected function help() {
@@ -83,17 +80,17 @@
8481 $wgOut->addWikiText("<h2>Help</h2>");
8582 $wgOut->addWikiText(wfMsgSc("copy_help"));
8683 }
87 -
 84+
8885 /**read in and partially validate parameters,
8986 * then call _doCopy()
9087 */
9188 protected function copy_by_param() {
92 - global
 89+ global
9390 $wgRequest, $wgOut;
94 -
 91+
9592 $dmid_dirty=$wgRequest->getText("dmid");
9693 $dc1_dirty=$wgRequest->getText("dc1");
97 - $dc2_dirty=$wgRequest->getText("dc2");
 94+ $dc2_dirty=$wgRequest->getText("dc2");
9895
9996 $abort=false; # check all input before aborting
10097
@@ -125,12 +122,12 @@
126123 * make sure you haven't used $wgOut before calling this!
127124 */
128125 protected function autoredir() {
129 - global
 126+ global
130127 $wgTitle, $wgOut, $wgRequest;
131128
132 - $dmid_dirty=$wgRequest->getText("dmid");
133 - $dc1_dirty=$wgRequest->getText("dc1");
134 - $dc2_dirty=$wgRequest->getText("dc2");
 129+ $dmid_dirty=$wgRequest->getText("dmid");
 130+ $dc1_dirty=$wgRequest->getText("dc1");
 131+ $dc2_dirty=$wgRequest->getText("dc2");
135132
136133 # Where should we redirect to?
137134 $meanings=getDefinedMeaningDataAssociatedByConcept($dmid_dirty, $dc1_dirty);
@@ -148,9 +145,9 @@
149146 /* Using Copy.php; perform a copy of a defined meaning from one dataset to another,
150147 provided the user has permission to do so,*/
151148 protected function _doCopy($dmid_dirty, $dc1_dirty, $dc2_dirty) {
152 - global
 149+ global
153150 $wgCommunityEditPermission, $wgOut, $wgUser, $wgCommunity_dc;
154 -
 151+
155152 # escape parameters
156153 $dmid=mysql_real_escape_string($dmid_dirty);
157154 $dc1=mysql_real_escape_string($dc1_dirty);
@@ -165,9 +162,9 @@
166163 # copy
167164 CopyTools::newCopyTransaction($dc1, $dc2);
168165 $dmc=new DefinedMeaningCopier($dmid, $dc1, $dc2);
169 - $dmc->dup();
 166+ $dmc->dup();
170167
171 - # For purposes of current "edit copy",
 168+ # For purposes of current "edit copy",
172169 # having the dm be already_there() is ok.
173170 # (hence commented out)
174171 #if ($dmc->already_there() ) {
@@ -176,8 +173,10 @@
177174 #}
178175
179176 return true; # seems everything went ok.
180 -
 177+
181178 }
182179 }
183180 SpecialPage::addPage( new SpecialCopy );
 181+
184182 }
 183+
Index: trunk/extensions/Wikidata/AddPrefs.php
@@ -1,20 +1,20 @@
22 <?php
3 -
 3+
44 /**
55 * This allows other extensions to add their own preferences to the default preferences display
66 *
77 * Author: Austin Che <http://openwetware.org/wiki/User:Austin>
88 */
9 -
 9+
1010 $wgExtensionCredits['specialpage'][] = array(
11 - 'name' => 'PreferencesExtension',
12 - 'version' => '2006/11/16',
13 - 'author' => 'Austin Che',
14 - 'url' => 'http://openwetware.org/wiki/User:Austin_J._Che/Extensions/PreferencesExtension',
15 - 'description' => 'Enables extending user preferences',
 11+ 'name' => 'PreferencesExtension',
 12+ 'version' => '2006/11/16',
 13+ 'author' => 'Austin Che',
 14+ 'url' => 'http://openwetware.org/wiki/User:Austin/Extensions/PreferencesExtension',
 15+ 'description' => 'Enables extending user preferences',
1616 );
1717 $wgHooks['SpecialPage_initList'][] = 'wfOverridePreferences';
18 -
 18+
1919 // constants for pref types
2020 define('PREF_USER_T', 1);
2121 define('PREF_TOGGLE_T', 2);
@@ -22,23 +22,23 @@
2323 define('PREF_PASSWORD_T', 4);
2424 define('PREF_INT_T', 5);
2525 define('PREF_OPTIONS_T', 6);
26 -
 26+
2727 // each element of the following should be an array that can have keys:
2828 // name, section, type, size, validate, load, save, html, min, max, default
2929 if (!isset($wgExtensionPreferences))
3030 $wgExtensionPreferences = array();
31 -
 31+
3232 function wfOverridePreferences(&$list)
3333 {
3434 // we 'override' the default preferences special page with our own
3535 $list["Preferences"] = array("SpecialPage", "Preferences", "", true, "wfSpecialPreferencesExtension");
3636 return true;
3737 }
38 -
 38+
3939 function wfSpecialPreferencesExtension()
4040 {
4141 require_once('SpecialPreferences.php');
42 -
 42+
4343 // override the default preferences form
4444 class SpecialPreferencesExtension extends PreferencesForm
4545 {
@@ -48,19 +48,19 @@
4949 // finally parent's execute function doesn't need overriding
5050 // this leaves only two functions to override
5151 // one for displaying the form and one for saving the values
52 -
53 - function savePreferences()
 52+
 53+ function savePreferences()
5454 {
5555 // handle extension prefs first
5656 global $wgUser, $wgRequest;
5757 global $wgExtensionPreferences;
58 -
 58+
5959 foreach ($wgExtensionPreferences as $pref)
6060 {
6161 $name = isset($pref['name']) ? $pref['name'] : "";
6262 if (! $name)
6363 continue;
64 -
 64+
6565 $value = $wgRequest->getVal($name);
6666 $type = isset($pref['type']) ? $pref['type'] : PREF_USER_T;
6767 switch ($type)
@@ -71,7 +71,7 @@
7272 else
7373 $wgUser->setOption($name, $wgRequest->getCheck("wpOp{$name}"));
7474 break;
75 -
 75+
7676 case PREF_INT_T:
7777 $min = isset($pref['min']) ? $pref['min'] : 0;
7878 $max = isset($pref['max']) ? $pref['max'] : 0x7fffffff;
@@ -80,7 +80,7 @@
8181 else
8282 $wgUser->setOption($name, $this->validateIntOrNull($value, $min, $max));
8383 break;
84 -
 84+
8585 case PREF_PASSWORD_T:
8686 case PREF_TEXT_T:
8787 case PREF_USER_T:
@@ -94,28 +94,28 @@
9595 break;
9696 }
9797 }
98 -
 98+
9999 // call parent's function which saves the normal prefs and writes to the db
100100 parent::savePreferences();
101101 }
102 -
 102+
103103 function mainPrefsForm( $status , $message = '' )
104104 {
105105 global $wgOut, $wgRequest, $wgUser;
106106 global $wgExtensionPreferences;
107 -
 107+
108108 // first get original form, then hack into it new options
109109 parent::mainPrefsForm($status, $message);
110110 $html = $wgOut->getHTML();
111111 $wgOut->clearHTML();
112 -
 112+
113113 $sections = array();
114114 foreach ($wgExtensionPreferences as $pref)
115115 {
116116 if (! isset($pref['section']) || ! $pref['section'])
117117 continue;
118118 $section = $pref['section'];
119 -
 119+
120120 $name = isset($pref['name']) ? $pref['name'] : "";
121121 $value = "";
122122 if ($name)
@@ -127,33 +127,33 @@
128128 }
129129 if ($value === '' && isset($pref['default']))
130130 $value = $pref['default'];
131 -
 131+
132132 $sectext = htmlspecialchars(wfMsg($section));
133 - $regex = "/(<fieldset>\s*<legend>\s*" . preg_quote($sectext) .
 133+ $regex = "/(<fieldset>\s*<legend>\s*" . preg_quote($sectext) .
134134 "\s*<\/legend>.*?)(<\/fieldset>)/s";
135 -
 135+
136136 // check if $section exists in prefs yet
137137 // cache the existence of sections
138138 if (!isset($sections[$section]))
139139 {
140140 $sections[$section] = true;
141 -
 141+
142142 if (! preg_match($regex, $html, $m))
143143 {
144144 // doesn't exist so add an empty section to end
145145 $addhtml = "<fieldset><legend>$sectext</legend></fieldset>";
146146 $html = preg_replace("/(<div id='prefsubmit'.*)/s", "$addhtml $1", $html);
147147 }
148 -
 148+
149149 }
150 -
 150+
151151 $type = isset($pref['type']) ? $pref['type'] : PREF_USER_T;
152152 switch ($type)
153153 {
154154 case PREF_TOGGLE_T:
155155 $addhtml = $this->getToggle($name);
156156 break;
157 -
 157+
158158 case PREF_INT_T:
159159 case PREF_TEXT_T:
160160 case PREF_PASSWORD_T:
@@ -163,10 +163,10 @@
164164 $type = "password";
165165 else
166166 $type = "text";
167 - $addhtml = "<table>" .
 167+ $addhtml = "<table>" .
168168 $this->addRow("<label for=\"{$name}\">$caption</label>",
169169 "<input type=\"$type\" name=\"{$name}\" value=\"{$value}\" $size />") . "</table>" ;
170 - break;
 170+ break;
171171 case PREF_OPTIONS_T:
172172 $caption = isset($pref['caption']) && $pref['caption'] ? $pref['caption'] : wfMsg($name);
173173 $addhtml="$caption <select name=\"$name\" id=\"$name\">";
@@ -177,7 +177,7 @@
178178 $sel='';
179179 if(!$defaultSet && !$option) $sel="SELECTED";
180180 if($defaultSet && $optval==$option) $sel="SELECTED";
181 - $addhtml.="<option value=\"$option\" $sel>$optionlabel</option>";
 181+ $addhtml.="<option value=\"$option\" $sel>$optionlabel</option>";
182182 }
183183 }
184184 $addhtml.="</select>";
@@ -187,18 +187,18 @@
188188 $addhtml = preg_replace("/@VALUE@/", $value, isset($pref['html']) ? $pref['html'] : "");
189189 break;
190190 }
191 -
 191+
192192 // the section exists
193193 $html = preg_replace($regex, "$1 $addhtml $2", $html);
194194 }
195 -
 195+
196196 $wgOut->addHTML($html);
197 -
 197+
198198 // debugging
199199 //$wgOut->addHTML($wgUser->encodeOptions());
200200 }
201201 }
202 -
 202+
203203 global $wgRequest;
204204 $prefs = new SpecialPreferencesExtension($wgRequest);
205205 $prefs->execute();
Index: trunk/extensions/timeline/Timeline.php
@@ -14,7 +14,6 @@
1515 $wgExtensionFunctions[] = "wfTimelineExtension";
1616 $wgExtensionCredits['parserhook'][] = array(
1717 'name' => 'EasyTimeline',
18 - 'version' => '1.1',
1918 'author' => 'Erik Zachte',
2019 'url' => 'http://meta.wikimedia.org/wiki/EasyTimeline',
2120 'description' => 'Timeline extension',
Index: trunk/extensions/TitleBlacklist/TitleBlacklist.php
@@ -6,9 +6,9 @@
77 $wgExtensionCredits['other'][] = array(
88 'name' => 'Title Blacklist',
99 'version' => '1.1',
10 - 'url' => 'http://www.mediawiki.org/wiki/Extension:TitleBlacklist',
 10+ 'url' => 'http://www.mediawiki.org/wiki/Extension:TitleBlacklist',
1111 'author' => 'VasilievVV',
12 - 'description' => 'Allows to forbide creation of pages with specified titles',
 12+ 'description' => 'Allows to forbide creation of pages with specified titles'
1313 );
1414
1515 $wgAutoloadClasses['TitleBlacklist'] = dirname( __FILE__ ) . '/TitleBlacklist.list.php';
Index: trunk/extensions/wikiforum/wikiforum.php
@@ -25,7 +25,7 @@
2626 */
2727 if(defined('MEDIAWIKI')) {
2828 // Defines and options
29 -define('FORUM_PATH', 'extensions/wikiforum/' ); // extention path
 29+define('FORUM_PATH', 'extensions/wikiforum/' ); // extention path
3030 define('FORUM_VERSION', '1.0.7.0');
3131 define('FORUM_MAX_THREAD', 50); // total number of last thread displayed on the forum page
3232 define('FORUM_INCLUDED_NUM', 20); // number of thread directly included into the forum page
@@ -42,14 +42,6 @@
4343 define('FORUM_SHOW_VIEW_COUNT', false ); // if true, the thread total view number is display into the table
4444 define('FORUM_LASTEST_ON_TOP', false); // change the threads sort order on the main page.
4545
46 -$wgExtensionCredits['other'][] = array(
47 - 'name' => 'Wiki forum',
48 - 'version' => '1.1',
49 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Wiki_forum',
50 - 'author' => 'Guillaume Blanchard',
51 - 'description' => 'Wiki forum',
52 -);
53 -
5446 // Extension start function
5547 $wgExtensionFunctions[] = 'wfForum';
5648
@@ -97,7 +89,7 @@
9890 * @addtogroup Extensions
9991 */
10092 class NewThread {
101 -
 93+
10294 /** show the form where a user can create a new thread */
10395 function showForm() {
10496 global $wgOut, $wgUser, $wgRequest;
@@ -109,10 +101,10 @@
110102 'media' => 'screen,projection',
111103 'href' => FORUM_CSS
112104 ));
113 -
 105+
114106 $titleObj = Title::makeTitle( NS_SPECIAL, 'Newthread' );
115107 $action = $titleObj->escapeLocalURL( 'action=submit' );
116 -
 108+
117109 $title = htmlspecialchars( $wgRequest->getVal('threadTitle', '') );
118110 $desc = htmlspecialchars( $wgRequest->getVal('threadDescription', '') );
119111
@@ -129,7 +121,7 @@
130122 /** Check and save the thread in the database */
131123 function doSubmit() {
132124 global $wgOut, $wgRequest, $wgParser, $wgUser, $wgContLang;
133 -
 125+
134126 $tt = $wgContLang->ucfirst(trim($wgRequest->getVal('threadTitle', '')));
135127 $title = Title::makeTitleSafe( NS_THREAD, $tt );
136128
@@ -200,16 +192,16 @@
201193 function SetSummaryMaxLength($sum=FORUM_SUM_LENGHT) {
202194 $this->mSumLength = $sum;
203195 }
204 -
 196+
205197 function SetForumLastestOnTop($lastest=FORUM_LASTEST_ON_TOP) {
206198 $this->mSortOrder = $lastest ? true : false;
207199 }
208200
209201 function Generate() {
210202 global $wgLang, $wgServer, $wgOut, $wgUserHtml, $wgRequest, $wgScriptPath;
211 -
 203+
212204 list( $limit, $offset ) = wfCheckLimits( $this->mMaxThread, 'wikiforumlimit');
213 -
 205+
214206 $fname = 'Forum::generate';
215207
216208 if(FORUM_ALLOW_NAMESPACE)
@@ -237,12 +229,12 @@
238230 "</script>\n");
239231 }
240232 $wgOut->addHTML("<!-- This page was generated by WikiForum v".FORUM_VERSION." -->\n");
241 -
 233+
242234 // Get last X modified thread
243235 wfDebug("FORUM - START GENERATE\n");
244236 $dbr =& wfGetDB( DB_SLAVE );
245237 $cur = $dbr->tableName( 'cur' );
246 -
 238+
247239 // FIXME : does not work with 1.5
248240 $sql = "SELECT cur_title, cur_comment, cur_user_text, cur_timestamp, cur_counter FROM $cur".
249241 " WHERE cur_namespace = $ns".
@@ -250,23 +242,23 @@
251243 ' ORDER BY cur_timestamp DESC';
252244 $res = $dbr->query( $sql . $dbr->limitResult( $limit,$offset ), $fname );
253245 $num = $dbr->numRows( $res );
254 -
 246+
255247 // Generate forum's text
256248 $text = '';
257249 $text .= "__NOEDITSECTION____NOTOC__\n";
258 -
 250+
259251 if(FORUM_INCLUDE_HEADER) {
260252 $title = Title::makeTitleSafe( NS_MEDIAWIKI, 'Forum' );
261253 if($title->getArticleID() != 0) // article exist
262254 $text .= "<div class=\"wf forum_header\">{{".$wgLang->getNsText(NS_MEDIAWIKI).":Forum}}</div>\n";
263255 }
264 -
 256+
265257 // Link to create a thread only if current namespace is NS_THREAD
266258 if($ns == NS_THREAD)
267259 $text .= "<div class=\"wf create_thread\" id=\"top\">[[Special:Newthread|".WF_Msg('ThreadCreate')."]]</div>\n\n";
268260
269261 $text .= "> [{{SERVER}}{{localurl:Special:Allpages|from=&namespace=$ns}} ".WF_Msg('ThreadAll')."]\n\n";
270 -
 262+
271263 $tab = array();
272264 $cnt = 0;
273265
@@ -291,7 +283,7 @@
292284 $this->mMaxFullText = $num;
293285
294286 $summary = $num - $this->mMaxFullText;
295 -
 287+
296288 $wgOut->addWikiText( $text );
297289 $text = '';
298290
@@ -311,14 +303,14 @@
312304 "<th>".WF_Msg('ThreadComment')."</th>\n".
313305 "<th>".WF_Msg('ThreadTime')."</th>\n".
314306 "</tr>\n" );
315 -
 307+
316308 $col = 6;
317309 if(FORUM_SHOW_VIEW_COUNT)
318310 $col--;
319311
320312 for( $cnt=0; $cnt<$num; $cnt++ ) {
321313 $t = $wgLang->getNsText( $ns );
322 - if ( $t != '' )
 314+ if ( $t != '' )
323315 $t .= ':' ;
324316 $t .= $tab[$cnt]->title;
325317
@@ -336,13 +328,13 @@
337329 "<th>".WF_Msg('ThreadTime')."</th>\n".
338330 "</tr>\n" );
339331 }
340 -
 332+
341333 if($cnt < $summary) {
342334 if($cnt & 1)
343335 $wgOut->addHTML( "<tr class=\"wf thread_row thread_list odd\">\n" );
344336 else
345337 $wgOut->addHTML( "<tr class=\"wf thread_row thread_list peer\">\n" );
346 -
 338+
347339 $wgOut->addHTML( "<td> </td><td>" );
348340 $wgOut->addWikiText( "[[$t|". $title->getText() ."]]", false );
349341 $wgOut->addHTML( "</td>\n" );
@@ -377,7 +369,7 @@
378370 "<td>". htmlspecialchars($tab[$cnt]->comment) . "</td>\n".
379371 "<td>". $wgLang->timeanddate($tab[$cnt]->timestamp) ."</td>\n".
380372 "</tr>\n" );
381 -
 373+
382374 if($cnt & 1)
383375 $wgOut->addHTML( "<tr class=\"wf thread_row thread_body odd\">\n" );
384376 else
@@ -412,7 +404,7 @@
413405
414406 for( $cnt=0; $cnt<$max; $cnt++ ) {
415407 $t = $wgLang->getNsText( $ns );
416 - if ( $t != '' )
 408+ if ( $t != '' )
417409 $t .= ':' ;
418410 $t .= $tab[$cnt]->title;
419411
@@ -423,7 +415,7 @@
424416 $text .= "|- class=\"wf thread_row\" id=\"thread_rowodd\"\n";
425417 else
426418 $text .= "|- class=\"wf thread_row\" id=\"thread_rowpeer\"\n";
427 -
 419+
428420 $text .= "| [[$t|". $title->getText() ."]] ".
429421 "|| ". $tab[$cnt]->count." ".
430422 "|| [[". $wgLang->getNsText( NS_USER ) .":". $tab[$cnt]->user ."|" .$tab[$cnt]->user. "]] ".
@@ -434,7 +426,7 @@
435427 $text .= "|- class=\"wf thread_row\" id=\"threadincodd\"\n";
436428 else
437429 $text .= "|- class=\"wf thread_row\" id=\"threadincpeer\"\n";
438 -
 430+
439431 $text .= "| [[#".$title->getText()."|".$title->getText()."]] ".
440432 "|| ". $tab[$cnt]->count." ".
441433 "|| [[". $wgLang->getNsText( NS_USER ) .":". $tab[$cnt]->user ."|" .$tab[$cnt]->user. "]] ".
@@ -442,7 +434,7 @@
443435 "|| ". $wgLang->timeanddate($tab[$cnt]->timestamp) ."\n";
444436 }
445437 }
446 -
 438+
447439 $text .= "|}\n\n";
448440 }
449441
@@ -458,7 +450,7 @@
459451
460452 for( $cnt=$summary; $cnt<$num; $cnt++ ) {
461453 $t = $wgLang->getNsText( $ns );
462 - if ( $t != '' )
 454+ if ( $t != '' )
463455 $t .= ':' ;
464456 $t .= $tab[$cnt]->title;
465457
@@ -468,20 +460,20 @@
469461 $text .= "|- class=\"wf thread_row\" id=\"threadincodd\"\n";
470462 else
471463 $text .= "|- class=\"wf thread_row\" id=\"threadincpeer\"\n";
472 -
 464+
473465 $text .= "| [[#".$title->getText()."|".$title->getText()."]] ".
474466 "|| ". $tab[$cnt]->count." ".
475467 "|| [[". $wgLang->getNsText( NS_USER ) .":". $tab[$cnt]->user ."|" .$tab[$cnt]->user. "]] ".
476468 "|| ". $tab[$cnt]->comment . " " .
477469 "|| ". $wgLang->timeanddate($tab[$cnt]->timestamp) ."\n";
478470 }
479 -
 471+
480472 $text .= "|}\n\n";
481473 }
482474
483475 for( $cnt=$summary; $cnt<$num; $cnt++ ) {
484476 $t = $wgLang->getNsText( $ns );
485 - if ( $t != '' )
 477+ if ( $t != '' )
486478 $t .= ':' ;
487479 $t .= $tab[$cnt]->title;
488480
@@ -522,7 +514,7 @@
523515
524516
525517 class SpecialForum extends SpecialPage {
526 - function SpecialForum()
 518+ function SpecialForum()
527519 {
528520 SpecialPage::SpecialPage('Forum');
529521 SpecialPage::setListed(true);
@@ -547,9 +539,9 @@
548540 global $wgRequest, $action;
549541
550542 $nt = new NewThread();
551 - if ( $action == 'submit' && $wgRequest->wasPosted() )
 543+ if ( $action == 'submit' && $wgRequest->wasPosted() )
552544 $nt->doSubmit();
553 - else
 545+ else
554546 $nt->showForm();
555547 }
556548 }
@@ -566,3 +558,5 @@
567559
568560
569561 } // end if(defined('MEDIAWIKI'))
 562+
 563+
Index: trunk/extensions/wikihiero/wikihiero.php
@@ -27,10 +27,9 @@
2828 // Register MediaWiki extension
2929 $wgExtensionFunctions[] = 'WH_Register';
3030 $wgExtensionCredits['parserhook'][] = array(
31 - 'name' => 'WikiHiero',
32 - 'version' => '1.1',
33 - 'author' => 'Guillaume Blanchard',
34 - 'url' => 'http://meta.wikimedia.org/wiki/WikiHiero',
 31+ 'name' => 'WikiHiero',
 32+ 'author' => 'Guillaume Blanchard',
 33+ 'url' => 'http://meta.wikimedia.org/wiki/WikiHiero',
3534 'description' => 'Syntax to display hieroglyph',
3635 );
3736
@@ -62,3 +61,4 @@
6362
6463 // If anyone needs WikiHieroHTML() etc., loader functions should be put here.
6564 // Hopefully everyone's using the general-purpose entry point above.
 65+
Index: trunk/extensions/UserRightsNotif/UserRightsNotif.php
@@ -15,7 +15,6 @@
1616 $wgExtensionFunctions[] = 'efUserRightsNotifierSetup';
1717 $wgExtensionCredits['other'][] = array(
1818 'name' => 'User Rights Email Notification',
19 - 'version' => '1.1',
2019 'url' => 'http://www.mediawiki.org/wiki/Extension:User_Rights_Email_Notification',
2120 'author' => 'Rob Church',
2221 'description' => 'Sends email notification to users upon rights changes',
Index: trunk/extensions/Userip/Userip.php
@@ -12,15 +12,9 @@
1313 if (!defined('MEDIAWIKI'))
1414 die;
1515
16 -$wgExtensionCredits['specialpage'][] = array(
17 - 'name' => 'Userip',
18 - 'version' => '1.1',
19 - 'url' => 'http://www.mediawiki.org/wiki/Extension:UserIP',
20 - 'author' => 'Ævar Arnfjörð Bjarmason',
21 - 'description' => 'Given a username returns a list of IP addresses that user has made edits to the wiki from',
22 -);
23 -
2416 if ( !function_exists( 'extAddSpecialPage' ) ) {
2517 require( dirname(__FILE__) . '/../ExtensionFunctions.php' );
2618 }
2719 extAddSpecialPage( dirname(__FILE__) . '/Userip_body.php', 'Espionage', 'Espionage' );
 20+
 21+
Index: trunk/extensions/UsernameBlacklist/UsernameBlacklist.php
@@ -14,11 +14,10 @@
1515 $wgExtensionFunctions[] = 'efUsernameBlacklistSetup';
1616 $wgExtensionCredits['other'][] = array(
1717 'name' => 'Username Blacklist',
18 - 'version' => '1.1',
1918 'author' => 'Rob Church',
2019 'url' => 'http://www.mediawiki.org/wiki/Extension:Username_Blacklist',
2120 'description' => 'Restrict the creation of user accounts matching one or more regular expressions',
22 - );
 21+ );
2322
2423 $wgAvailableRights[] = 'uboverride';
2524 $wgGroupPermissions['sysop']['uboverride'] = true;
@@ -59,7 +58,7 @@
6059 return true;
6160 }
6261 }
63 -
 62+
6463 /**
6564 * When the blacklist page is edited, invalidate the blacklist cache
6665 *
@@ -73,18 +72,18 @@
7473 $blacklist->invalidateCache();
7574 }
7675 return true;
77 - }
78 -
 76+ }
 77+
7978 /**
8079 * If editing the username blacklist page, check for validity and whine at the user.
8180 */
8281 function efUsernameBlacklistValidate( $editPage, $text, $section, &$hookError ) {
8382 if( $editPage->mTitle->getNamespace() == NS_MEDIAWIKI &&
8483 $editPage->mTitle->getDbKey() == 'Usernameblacklist' ) {
85 -
 84+
8685 $blacklist = UsernameBlacklist::fetch();
8786 $badLines = $blacklist->validate( $text );
88 -
 87+
8988 if( $badLines ) {
9089 $badList = "*<tt>" .
9190 implode( "</tt>\n*<tt>",
@@ -97,18 +96,18 @@
9897 $badList .
9998 "</div>\n" .
10099 "<br clear='all' />\n";
101 -
 100+
102101 // This is kind of odd, but... :D
103102 return true;
104103 }
105104 }
106105 return true;
107106 }
108 -
 107+
109108 class UsernameBlacklist {
110 -
111 - var $regex;
112 -
 109+
 110+ var $regex;
 111+
113112 /**
114113 * Trim leading spaces and asterisks from the text
115114 * @param $text Text to trim
@@ -117,7 +116,7 @@
118117 function transform( $text ) {
119118 return trim( $text, ' *' );
120119 }
121 -
 120+
122121 /**
123122 * Is the supplied text an appropriate fragment to include?
124123 *
@@ -127,7 +126,7 @@
128127 function isUsable( $text ) {
129128 return substr( $text, 0, 1 ) == '*';
130129 }
131 -
 130+
132131 /**
133132 * Attempt to fetch the blacklist from cache; build it if needs be
134133 *
@@ -144,7 +143,7 @@
145144 return $list;
146145 }
147146 }
148 -
 147+
149148 /**
150149 * Build the blacklist from scratch, using the message page
151150 *
@@ -158,7 +157,7 @@
159158 return array();
160159 }
161160 }
162 -
 161+
163162 /**
164163 * Build one or more blacklist regular expressions from the input.
165164 * If a fragment causes an error, we'll return multiple items
@@ -171,11 +170,11 @@
172171 $groups = $this->fragmentsFromInput( $input );
173172 if( count( $groups ) ) {
174173 $combinedRegex = '/(' . implode( '|', $groups ) . ')/u';
175 -
 174+
176175 wfSuppressWarnings();
177176 $ok = ( preg_match( $combinedRegex, '' ) !== false );
178177 wfRestoreWarnings();
179 -
 178+
180179 if( $ok ) {
181180 return array( $combinedRegex );
182181 } else {
@@ -189,7 +188,7 @@
190189 return array();
191190 }
192191 }
193 -
 192+
194193 /**
195194 * Break input down by line, remove comments, and strip to regex fragments.
196195 * @input string
@@ -205,7 +204,7 @@
206205 }
207206 return $groups;
208207 }
209 -
 208+
210209 /**
211210 * Go through a set of input and return a list of lines which
212211 * produce invalid regexes.
@@ -227,7 +226,7 @@
228227 }
229228 return $bad;
230229 }
231 -
 230+
232231 /**
233232 * Invalidate the blacklist cache
234233 */
@@ -235,7 +234,7 @@
236235 global $wgMemc;
237236 $wgMemc->delete( $this->key );
238237 }
239 -
 238+
240239 /**
241240 * Match a username against the blacklist
242241 * @param $username Username to check
@@ -246,7 +245,7 @@
247246 wfSuppressWarnings();
248247 $match = preg_match( $regex, $username );
249248 wfRestoreWarnings();
250 -
 249+
251250 if( $match ) {
252251 return true;
253252 } elseif( $match === false ) {
@@ -255,7 +254,7 @@
256255 }
257256 return false;
258257 }
259 -
 258+
260259 /**
261260 * Constructor
262261 * Prepare the regular expression
@@ -276,10 +275,10 @@
277276 $blackList = new UsernameBlacklist();
278277 return $blackList;
279278 }
280 -
 279+
281280 }
282 -
 281+
283282 } else {
284283 echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
285284 die( 1 );
286 -}
 285+}
\ No newline at end of file
Index: trunk/extensions/RenderHash/RenderHash.php
@@ -1,13 +1,5 @@
22 <?php
33
4 -$wgExtensionCredits['specialpage'][] = array(
5 - 'name' => 'RenderHash',
6 - 'version' => '1.1',
7 - 'author' => 'Brion Vibber',
8 - 'url' => 'http://www.mediawiki.org/wiki/Extension:RenderHash',
9 - 'description' => 'Render Hash',
10 -);
11 -
124 $wgHooks['PageRenderingHash'][] = 'renderHashAppend';
135 $wgRenderHashAppend = '';
146
@@ -23,3 +15,4 @@
2416 $hash .= $wgRenderHashAppend;
2517 return true;
2618 }
 19+
Index: trunk/extensions/TodoTasks/SpecialTaskList.php
@@ -5,12 +5,12 @@
66 modify it under the terms of the GNU General Public License
77 as published by the Free Software Foundation, version 2
88 of the License.
9 -
 9+
1010 This program is distributed in the hope that it will be useful,
1111 but WITHOUT ANY WARRANTY; without even the implied warranty of
1212 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1313 GNU General Public License for more details.
14 -
 14+
1515 You should have received a copy of the GNU General Public License
1616 along with this program; if not, write to the Free Software
1717 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -21,20 +21,20 @@
2222 $wgTodoTasksExtensionVersion = '0.9.5';
2323
2424 $wgExtensionCredits['parserhook'][] = array(
25 - 'version' => $wgTodoTasksExtensionVersion,
26 - 'name' => 'Todo Tasks',
27 - 'author' => 'Paul Grinberg',
28 - 'email' => 'gri6507 at yahoo dot com',
29 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Todo_Tasks',
30 - 'description' => 'Adds <nowiki>{{#todo:}}</nowiki> parser function for assigning tasks'
 25+ 'version' => $wgTodoTasksExtensionVersion,
 26+ 'name' => 'Todo Tasks',
 27+ 'author' => 'Paul Grinberg',
 28+ 'email' => 'gri6507 at yahoo dot com',
 29+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Todo_Tasks',
 30+ 'description' => 'adds <nowiki>{{#todo:}}</nowiki> parser function for assigning tasks'
3131 );
3232 $wgExtensionCredits['specialpage'][] = array(
33 - 'name' => 'Todo Tasks',
34 - 'version' => $wgTodoTasksExtensionVersion,
35 - 'author' => 'Paul Grinberg',
36 - 'email' => 'gri6507 at yahoo dot com',
37 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Todo_Tasks',
38 - 'description' => 'Adds a special page for reviewing tasks assignments',
 33+ 'name' => 'Todo Tasks',
 34+ 'version' => $wgTodoTasksExtensionVersion,
 35+ 'author' => 'Paul Grinberg',
 36+ 'email' => 'gri6507 at yahoo dot com',
 37+ 'url' => 'http://www.mediawiki.org/wiki/Extension:Todo_Tasks',
 38+ 'description' => 'Adds a special page for reviewing tasks assignments'
3939 );
4040
4141 $wgUseProjects = true;
@@ -55,3 +55,4 @@
5656 $wgHooks['EditPage::attemptSave'][] = 'todoSavePreparser';
5757 $wgExtensionFunctions[] = 'wfTodoParserFunction_Setup';
5858 $wgHooks['LanguageGetMagic'][] = 'wfTodoParserFunction_Magic';
 59+
Index: trunk/extensions/WiktionaryInflection/Inflection.php
@@ -1,14 +1,6 @@
22 <?php
33 $wgExtensionFunctions[] = "wfInflectionExtension";
44
5 -$wgExtensionCredits['other'][] = array(
6 - 'name' => 'Wiktionary Inflection',
7 - 'version' => '1.1',
8 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Wiktionary_Inflection',
9 - 'author' => 'rodasmith',
10 - 'description' => 'Wiktionary inflection',
11 -);
12 -
135 function wfInflectionExtension() {
146 global $wgParser;
157 $wgParser->setHook("infl", "renderInflection");
@@ -112,3 +104,4 @@
113105 return "?<!-- " . $e->getMessage() . " -->";
114106 }
115107 }
 108+
Index: trunk/extensions/RDF/Rdf.php
@@ -22,15 +22,6 @@
2323 */
2424 if (defined('MEDIAWIKI')) {
2525
26 - $wgExtensionCredits['parserhook'][] = array(
27 - 'name' => 'RDF',
28 - 'version' => '1.1',
29 - 'author' => 'Evan Prodromou',
30 - 'email' => 'evan@wikitravel.org',
31 - 'url' => 'http://www.mediawiki.org/wiki/Extension:RDF',
32 - 'description' => 'RDF framework for MediaWiki',
33 - );
34 -
3526 require_once('GlobalFunctions.php');
3627 if (!defined('RDFAPI_INCLUDE_DIR')) {
3728 wfDebugDieBacktrace("MwRdf: you must install RAP (RDF API for PHP) " .
@@ -1036,3 +1027,5 @@
10371028 }
10381029
10391030 }
 1031+
 1032+
Index: trunk/extensions/Tooltip/Tooltip.php
@@ -3,19 +3,17 @@
44 $wgExtensionFunctions[] = "wfToolTipExtension";
55 $wgHooks['LanguageGetMagic'][] = 'wfTooltipParserFunction_Magic';
66 $wgExtensionCredits['parserhook'][] = array(
7 - 'name' => 'ToolTip',
8 - 'author' => 'Paul Grinberg',
9 - 'email' => 'gri6507 at yahoo dot com',
10 - 'description' => 'adds <nowiki><tooltip></nowiki> and <nowiki>{{#tooltip:}}</nowiki>tag',
11 - 'version' => '0.5.1',
12 - 'url' => 'http://www.mediawiki.org/wiki/Extension:Tooltip',
 7+ 'name' => 'ToolTip',
 8+ 'author' => 'Paul Grinberg',
 9+ 'description' => 'adds <nowiki><tooltip></nowiki> and <nowiki>{{#tooltip:}}</nowiki>tag',
 10+ 'version' => '0.5.1'
1311 );
1412
1513 function wfToolTipExtension() {
1614 global $wgParser;
1715 global $wgOut;
1816 global $wgScriptPath;
19 -
 17+
2018 $output .= <<< END
2119 <style type="text/css">
2220 .xstooltip{
@@ -134,3 +132,5 @@
135133
136134 return $output;
137135 }
 136+
 137+?>
Property changes on: trunk/extensions/Tooltip/Tooltip.php
___________________________________________________________________
Added: svn:eol-style
138138 + native
Index: trunk/extensions/Seealso/Seealso.php
@@ -11,13 +11,6 @@
1212 Set system message "seealso_local" to use a localized version, e.g., to "sieheauch"
1313 */
1414
15 -$wgExtensionCredits['parserhook'][] = array(
16 - 'name' => 'Seealso',
17 - 'version' => '1.1',
18 - 'url' => 'http://www.mediawiki.org/wiki/Extension:See_also',
19 - 'author' => 'Magnus Manske',
20 - 'description' => 'Localised \'See also\' headings using the tag <nowiki><seealso></nowiki>',
21 -);
2215
2316 $wgExtensionFunctions[] = "wfSeealso";
2417
@@ -42,3 +35,5 @@
4336 $ret = $ret->getText();
4437 return $ret ;
4538 }
 39+
 40+
Index: trunk/extensions/UserImages/UserImages.php
@@ -7,7 +7,7 @@
88 * @addtogroup Extensions
99 * @author Rob Church <robchur@gmail.com>
1010 */
11 -
 11+
1212 if( defined( 'MEDIAWIKI' ) ) {
1313
1414 $wgAutoloadClasses['UserImagesGallery'] = dirname( __FILE__ ) . '/UserImages.class.php';
@@ -15,19 +15,17 @@
1616
1717 $wgExtensionCredits['parserhook'][] = array(
1818 'name' => 'User Image Gallery',
19 - 'version' => '1.1',
20 - 'url' => 'http://www.mediawiki.org/wiki/Extension:UserImages',
2119 'author' => 'Rob Church',
2220 'description' => 'Generate galleries of user-uploaded images with <code><nowiki><userimage /></nowiki></code>',
2321 );
24 -
 22+
2523 /**
2624 * Set this to true to disable the parser cache for pages which
2725 * contain a <userimages> tag; this keeps the galleries up to date
2826 * at the cost of a performance overhead on page views
2927 */
3028 $wgUserImagesNoCache = false;
31 -
 29+
3230 /**
3331 * Extension initialisation function
3432 */
@@ -38,7 +36,7 @@
3937 $wgMessageCache->addMessages( $messages, $lang );
4038 $wgParser->setHook( 'userimages', 'efUserImagesRender' );
4139 }
42 -
 40+
4341 /**
4442 * Extension rendering function
4543 *
@@ -59,3 +57,4 @@
6058 echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
6159 exit();
6260 }
 61+

Status & tagging log