Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

MO : Blocklanguages : Add tag link with hreflang attribute #4

Open
alexpalyan wants to merge 2 commits into
PrestaShop:devfrom
alexpalyan:dev
Open

MO : Blocklanguages : Add tag link with hreflang attribute #4
alexpalyan wants to merge 2 commits into
PrestaShop:devfrom
alexpalyan:dev

Conversation

@alexpalyan
Copy link
Copy Markdown

Comment thread blocklanguages.php Outdated
$this->context->controller->addCSS($this->_path.'blocklanguages.css', 'all');
if (!$this->_prepareHook($params))
return;
return $this->display(__FILE__, 'blocklanguages-header.tpl');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a "positive" logic could be more readable IMHO

public function hookDisplayHeader($params)
{
    $this->context->controller->addCSS($this->_path.'blocklanguages.css', 'all');
    if ($this->_prepareHook($params)) {
        return $this->display(__FILE__, 'blocklanguages-header.tpl');
    }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants