Skip to content

Commit

Permalink
just better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepereiradasilva committed Mar 25, 2016
1 parent 4453a23 commit 1c34b7b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/system/sef/sef.php
Expand Up @@ -42,13 +42,13 @@ public function onAfterDispatch()

$sefDomain = $this->params->get('domain', '');

// Don't add a canonical id no alternative domain has added in SEF plugin domain field.
// Don't add a canonical html tag if no alternative domain has added in SEF plugin domain field.
if (empty($sefDomain))
{
return;
}

// Check if canonical already exists (for instance, added by a component).
// Check if a canonical html tag already exists (for instance, added by a component).
$canonical = '';
foreach ($doc->_links as $linkUrl => $link)
{
Expand All @@ -68,7 +68,7 @@ public function onAfterDispatch()
// Set the current canonical link but use the SEF system plugin domain field.
$canonical = $sefDomain . JUri::getInstance($canonical)->toString(array('path', 'query', 'fragment'));
}
// If a canonical html doesn't exists already add a canonical using the SEF plugin domain field.
// If a canonical html doesn't exists already add a canonical html tag using the SEF plugin domain field.
else
{
$canonical = $sefDomain . JRoute::_('index.php?' . http_build_query($this->app->getRouter()->getVars()), false);
Expand Down

0 comments on commit 1c34b7b

Please sign in to comment.