Skip to content

Commit

Permalink
refs #1648 : added - routine for non-permalink pages
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Feb 27, 2014
1 parent a3439f3 commit 4da808c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions interface/common/blog/begin.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,11 @@
$view = str_replace('[##_SKIN_body_start_##]',getUpperView(isset($paging) ? $paging : null).'[##_SKIN_body_start_##]', $view);
$view = str_replace('[##_SKIN_body_end_##]',getLowerView().getScriptsOnFoot().'[##_SKIN_body_end_##]', $view); // care the order for js function overloading issue.
$automaticLink = " <link rel=\"stylesheet\" href=\"".$context->getProperty('uri.default')."/resources/style/system.css\" type=\"text/css\" media=\"screen\" />\n";
$canonicalLink = " <link rel=\"canonical\" href=\"".$context->getProperty('uri.permalink')."\"/>\n";

if (!is_null($context->getProperty('uri.permalink',null))) {
$canonicalLink = " <link rel=\"canonical\" href=\"".$context->getProperty('uri.permalink')."\"/>\n";
} else {
$canonicalLink = '';
}
dress('SKIN_head_end', $canonicalLink.$automaticLink."[##_SKIN_head_end_##]", $view);


Expand Down

0 comments on commit 4da808c

Please sign in to comment.