aboutsummaryrefslogtreecommitdiff
path: root/h-source/Application
diff options
context:
space:
mode:
Diffstat (limited to 'h-source/Application')
-rw-r--r--h-source/Application/Controllers/RssController.php13
-rw-r--r--h-source/Application/Include/params.php2
-rw-r--r--h-source/Application/Views/Desktop/Rss/modifications.php2
3 files changed, 16 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>