mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RSS
synced 2024-11-28 09:30:22 +00:00
added paramater to change the template name, fixing bug 26479
This commit is contained in:
parent
b2d75da767
commit
a789ea5969
|
@ -19,7 +19,7 @@ $messages['en'] = array(
|
|||
'rss-invalid-url' => 'Not a valid URL: $1',
|
||||
'rss-parse-error' => 'Error parsing XML for RSS',
|
||||
'rss-ns-permission' => 'RSS is not allowed in this namespace',
|
||||
'rss-item' => '{{RSSPost | title = {{{title}}} | link = {{{link}}} | date = {{{date}}} | author = {{{author}}} }}',
|
||||
'rss-item' => '{{$1 | title = {{{title}}} | link = {{{link}}} | date = {{{date}}} | author = {{{author}}} }}',
|
||||
);
|
||||
|
||||
/** Afrikaans (Afrikaans)
|
||||
|
|
2
RSS.php
2
RSS.php
|
@ -35,7 +35,7 @@ $wgExtensionCredits['parserhook'][] = array(
|
|||
'Jeroen De Dauw',
|
||||
'Mark A. Hershberger'
|
||||
),
|
||||
'version' => '1.8',
|
||||
'version' => '1.9',
|
||||
'url' => 'http://www.mediawiki.org/wiki/Extension:RSS',
|
||||
'descriptionmsg' => 'rss-desc',
|
||||
);
|
||||
|
|
|
@ -70,7 +70,8 @@ class RSSParser {
|
|||
$article = new Article( $titleObject, 0 );
|
||||
$this->itemTemplate = $article->fetchContent();
|
||||
} else {
|
||||
$this->itemTemplate = wfMsgNoTrans( 'rss-item' );
|
||||
$templateName = isset( $args['templatename'] ) ? $args['templatename'] : 'RSSPost';
|
||||
$this->itemTemplate = wfMsgNoTrans( 'rss-item', $templateName );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue