diff options
Diffstat (limited to 'h-source')
-rw-r--r-- | h-source/Application/Controllers/RssController.php | 13 | ||||
-rw-r--r-- | h-source/Application/Include/params.php | 2 | ||||
-rw-r--r-- | h-source/Application/Views/Desktop/Rss/modifications.php | 2 | ||||
-rw-r--r-- | h-source/Config/Route.php | 1 |
4 files changed, 17 insertions, 1 deletions
diff --git a/h-source/Application/Controllers/RssController.php b/h-source/Application/Controllers/RssController.php index 0d3325e..0a74695 100644 --- a/h-source/Application/Controllers/RssController.php +++ b/h-source/Application/Controllers/RssController.php @@ -35,10 +35,23 @@ class RssController extends SpecialController { header ("Content-Type:application/rss+xml"); parent::modifications($lang); + + $data['statusnetText'] = null; + $this->append($data); + $this->clean(); $this->load('modifications'); } + //RSS feeds for identi.ca or StatusNet + public function statusnet($lang = 'en') + { + $this->modifications($lang); + + $data['statusnetText'] = Website::$statusnetGroupText; + $this->append($data); + } + public function notapproved($lang = 'en') { $this->shift(1); diff --git a/h-source/Application/Include/params.php b/h-source/Application/Include/params.php index 94a6fd5..b972739 100644 --- a/h-source/Application/Include/params.php +++ b/h-source/Application/Include/params.php @@ -33,6 +33,8 @@ class Website static public $mailPassword = ""; static public $allowAnonymousSubmission = "yes"; + + static public $statusnetGroupText = ""; } class Account diff --git a/h-source/Application/Views/Desktop/Rss/modifications.php b/h-source/Application/Views/Desktop/Rss/modifications.php index 0db9158..addc483 100644 --- a/h-source/Application/Views/Desktop/Rss/modifications.php +++ b/h-source/Application/Views/Desktop/Rss/modifications.php @@ -15,7 +15,7 @@ $translations = array('insert'=>'inserted','update'=>'updated'); <?php foreach ($table as $row) { ?> <item> <title><?php echo $row['hardware']['model'];?></title> - <description><![CDATA[<?php echo gtext('the model')." ".$row['hardware']['model']." ".gtext('has been '.$translations[$row['history']['action']].' by')." ".$u->getUser($row['history']['created_by']);?>]]></description> + <description><![CDATA[<?php echo "$statusnetText ".gtext('the model')." ".$row['hardware']['model']." ".gtext('has been '.$translations[$row['history']['action']].' by')." ".$u->getUser($row['history']['created_by']);?>]]></description> <link><?php echo $this->baseUrl."/".Hardware::$typeToController[$row['hardware']['type']]."/view/$lang/".$row['hardware']['id_hard']."/".encodeUrl($row['hardware']['model']);?></link> <pubDate><?php echo pubDateFormat($row['history']['creation_date']);?></pubDate> </item> diff --git a/h-source/Config/Route.php b/h-source/Config/Route.php index 46f1908..5a2119d 100644 --- a/h-source/Config/Route.php +++ b/h-source/Config/Route.php @@ -172,6 +172,7 @@ class Route 'webcams,climb', 'webcams,talk', 'rss,modifications', + 'rss,statusnet', 'rss,notapproved', 'special,modifications', 'special,modactions', |