summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAlessandro Cosentino <cosenal@gmail.com>2012-07-04 14:51:47 -0400
committerAlessandro Cosentino <cosenal@gmail.com>2012-07-04 14:51:47 -0400
commit69480001986cd83852ee6351fbd5d68718eb829c (patch)
tree42ecf232740c84238727665fb198135a4e1fb989 /templates
parent41115284bf6c1023a542be0d6f2fab77febad36b (diff)
everything is there but the fancyness
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php4
-rw-r--r--templates/part.feeds.php4
2 files changed, 3 insertions, 5 deletions
diff --git a/templates/main.php b/templates/main.php
index 775dd46bf..faae31809 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -17,10 +17,10 @@
<div id="rightcontent" class="rightcontent" data-id="<?php echo $_['feedid']; ?>">
<?php
if ($_['feedid']){
- echo $this->inc('part.items');
+ echo $this->inc("part.items");
}
else {
- echo $this->inc('part.nofeeds');
+ echo $this->inc("part.nofeeds");
}
?>
</div>
diff --git a/templates/part.feeds.php b/templates/part.feeds.php
index 7b9b72126..52716c804 100644
--- a/templates/part.feeds.php
+++ b/templates/part.feeds.php
@@ -10,9 +10,7 @@
print_folder($child, $depth+1);
}
elseif ($child instanceOf OC_News_Feed) {
-?>
- <li><a href="index.php?feedid=<?php echo $child->getId(); ?>"><?php echo $child->getTitle(); ?></a></li>
-<?php
+ echo '<li><a href="' . OCP\Util::linkTo('news', 'index.php'). '?feedid=' . $child->getId() . '">' . $child->getTitle() .'</a></li>';
}
else {
//TODO:handle error in this case