Issue 2864: Add a "alternate" link on display page
This commit is contained in:
+4
-3
@@ -209,9 +209,6 @@ function display_content(App $a, $update = 0) {
|
||||
|
||||
$o = '';
|
||||
|
||||
$a->page['htmlhead'] .= replace_macros(get_markup_template('display-head.tpl'), array());
|
||||
|
||||
|
||||
if ($update) {
|
||||
$nick = $_REQUEST['nick'];
|
||||
} else {
|
||||
@@ -281,6 +278,10 @@ function display_content(App $a, $update = 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
$alternate = App::get_baseurl().'/display/'.$nick.'/'.$item_id.'.atom';
|
||||
$a->page['htmlhead'] .= replace_macros(get_markup_template('display-head.tpl'),
|
||||
array('$alternate' => $alternate));
|
||||
|
||||
|
||||
$groups = array();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user