Browse Source

- Urlize Blog and Feed

pull/16/head
Jaussoin Timothée 13 years ago
parent
commit
ff1b4da1e2
  1. 2
      system/Route.php
  2. 4
      system/Widget/widgets/Feed/Feed.php

2
system/Route.php

@ -15,6 +15,8 @@ class Route extends ControllerBase {
'about' => false,
'disconnect' => false,
'friend' => array('f'),
'blog' => array('f'),
'feed' => array('f'),
'node' => array('s', 'n'),
'server' => array('s'),
);

4
system/Widget/widgets/Feed/Feed.php

@ -187,12 +187,12 @@ class Feed extends WidgetCommon {
<div class="posthead">
<a
class="button tiny icon blog merged left"
href="?q=blog&f=<?php echo $this->user->getLogin(); ?>"
href="<?php echo Route::urlize('blog',$this->user->getLogin()); ?>"
target="_blank">
<?php echo t('Blog'); ?>
</a><a
class="button tiny icon feed merged right"
href="?q=feed&f=<?php echo $this->user->getLogin(); ?>"
href="<?php echo Route::urlize('feed',$this->user->getLogin()); ?>"
target="_blank">
<?php echo t('Feed'); ?> (Atom)
</a>

Loading…
Cancel
Save