Last active
June 18, 2019 10:51
-
-
Save sebastianrothbucher/f775810d9030b1a1c46961f0786c31ed to your computer and use it in GitHub Desktop.
Magento (1.9) debug comments for layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
950c950,951 | |
< return $html; | |
--- | |
> $isNoJsOnly = preg_match('/^\\s*$/', $html) || preg_match('/^\\s*</', $html); | |
> return $isNoJsOnly ? '<!-- Start ' . $this->getNameInLayout() .' (' . (property_exists($this, '_template') ? ($this->_template . ' ') : '') . '-->' . $html . '<!-- End ' . $this->getNameInLayout() . ' -->' : $html; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
one patch | |
- Block/Abstract.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment