Index: trunk/extensions/GoogleNewsSitemap/GoogleNewsSitemap_body.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | ** |
8 | 8 | * Simple feed using Atom/RSS coupled to DynamicPageList category searching. |
9 | 9 | * |
10 | | - * To use: http://wiki.url/Special:GNSM/[paramter=value][...] |
| 10 | + * To use: http://wiki.url/Special:GoogleNewsSitemap/[paramter=value][...] |
11 | 11 | * |
12 | 12 | * Implemented parameters are marked with an @ |
13 | 13 | ** |
— | — | @@ -26,9 +26,7 @@ |
27 | 27 | * suppresserrors = bool ; default = false |
28 | 28 | **/ |
29 | 29 | |
30 | | -class GNSM extends IncludableSpecialPage { |
31 | | - |
32 | | - |
| 30 | +class GoogleNewsSitemap extends IncludableSpecialPage { |
33 | 31 | /** |
34 | 32 | * FIXME: Some of this might need a config eventually |
35 | 33 | * @var string |
— | — | @@ -65,7 +63,7 @@ |
66 | 64 | * Constructor |
67 | 65 | **/ |
68 | 66 | public function __construct() { |
69 | | - parent::__construct( 'GNSM' ); |
| 67 | + parent::__construct( 'GoogleNewsSitemap' ); |
70 | 68 | } |
71 | 69 | |
72 | 70 | /** |
— | — | @@ -78,7 +76,7 @@ |
79 | 77 | global $wgRequest, $wgOut; |
80 | 78 | global $wgSitename, $wgServer, $wgScriptPath; |
81 | 79 | // global $wfTimeStamp; |
82 | | - wfLoadExtensionMessages( 'GNSM' ); |
| 80 | + wfLoadExtensionMessages( 'GoogleNewsSitemap' ); |
83 | 81 | global $wgFeedClasses, $wgLocaltimezone; |
84 | 82 | |
85 | 83 | // Not sure how clean $wgLocaltimezone is |
— | — | @@ -327,7 +325,7 @@ |
328 | 326 | $this->params['catCount'] = count( $this->categories ); |
329 | 327 | }else{ |
330 | 328 | echo "\$feed is not an object.\n"; |
331 | | - continue; |
| 329 | + //continue; |
332 | 330 | } |
333 | 331 | } |
334 | 332 | |
Index: trunk/extensions/GoogleNewsSitemap/GoogleNewsSitemap.php |
— | — | @@ -1,8 +1,8 @@ |
2 | 2 | <?php |
3 | 3 | if (!defined('MEDIAWIKI')) { |
4 | 4 | echo <<<EOT |
5 | | -To install GNSM extension, an extension special page, put the following line in LocalSettings.php: |
6 | | -require_once( dirname(__FILE__) . '/extensions/GNSM/SpecialGNSM.php' ); |
| 5 | +To install GoogleNewsSitemap extension, an extension special page, put the following line in LocalSettings.php: |
| 6 | +require_once( dirname(__FILE__) . '/extensions/GoogleNewsSitemap/GoogleNewsSitemap.php' ); |
7 | 7 | EOT; |
8 | 8 | exit( 1 ); |
9 | 9 | } |
— | — | @@ -17,11 +17,11 @@ |
18 | 18 | * - 0.92 http://www.rssboard.org/rss-0-9-2 |
19 | 19 | * Atom feed output - 2005 http://tools.ietf.org/html/rfc4287 |
20 | 20 | ** |
21 | | - * This page can be accessed from Special:GNSM[/][|category=Catname] |
| 21 | + * This page can be accessed from Special:GoogleNewsSitemap[/][|category=Catname] |
22 | 22 | * [|notcategory=OtherCatName][|namespace=0][|notnamespace=User] |
23 | 23 | * [|feed=sitemap][|count=10][|mode=ul][|ordermethod=lastedit] |
24 | 24 | * [|order=ascending] as well as being included like |
25 | | - * {{Special:GNSM/[options][...]}} |
| 25 | + * {{Special:GoogleNewsSitemap/[options][...]}} |
26 | 26 | ** |
27 | 27 | * This program is free software; you can redistribute it and/or modify it |
28 | 28 | * under the terms of the GNU General Public License as published by the Free |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | * n:en:User:IlyaHaykinson http://en.wikinews.org/wiki/User:IlyaHaykinson |
47 | 47 | ** |
48 | 48 | * FIXME requests |
49 | | - * use=Mediawiki:GNSM_Feedname Parameter to allow on-site control of feed |
| 49 | + * use=Mediawiki:GoogleNewsSitemap_Feedname Parameter to allow on-site control of feed |
50 | 50 | ** |
51 | 51 | * @addtogroup Extensions |
52 | 52 | * |
— | — | @@ -55,15 +55,15 @@ |
56 | 56 | */ |
57 | 57 | $wgExtensionCredits['specialpage'][] = array( |
58 | 58 | 'path' => __FILE__, |
59 | | - 'name' => 'GNSM', |
| 59 | + 'name' => 'GoogleNewsSitemap', |
60 | 60 | 'author' => 'Amgine', |
61 | 61 | 'description' => 'Outputs xml based on defined criteria', |
62 | 62 | 'descriptionmsg' => 'gnsm-desc', |
63 | | - 'url' => 'http://www.mediawiki.org/wiki/Extension:GNSM', |
| 63 | + 'url' => 'http://www.mediawiki.org/wiki/Extension:GoogleNewsSitemap', |
64 | 64 | ); |
65 | 65 | |
66 | 66 | $dir = dirname(__FILE__) . '/'; |
67 | | -$wgExtensionMessagesFiles['GNSM'] = $dir . 'GoogleNewsSitemap.i18n.php'; |
68 | | -$wgExtensionAliasesFiles['GNSM'] = $dir . 'GoogleNewsSitemap.alias.php'; |
69 | | -$wgAutoloadClasses['GNSM'] = $dir . 'GoogleNewsSitemap_body.php'; |
70 | | -$wgSpecialPages['GNSM'] = 'GNSM'; |
| 67 | +$wgExtensionMessagesFiles['GoogleNewsSitemap'] = $dir . 'GoogleNewsSitemap.i18n.php'; |
| 68 | +$wgExtensionAliasesFiles['GoogleNewsSitemap'] = $dir . 'GoogleNewsSitemap.alias.php'; |
| 69 | +$wgAutoloadClasses['GoogleNewsSitemap'] = $dir . 'GoogleNewsSitemap_body.php'; |
| 70 | +$wgSpecialPages['GoogleNewsSitemap'] = 'GoogleNewsSitemap'; |