You can add all conventional comments Labels to Github as a saved replies by following the following steps:
- Go to https://github.com/settings/replies
- Open Developer Tools
- Copy/Paste above code in JavaScript console
- Press enter
Patch using method below or if you don't want to patch a core file, see this Magento extension that does the same thing but correctly overrides the core file:
https://github.com/MageMechanic/PhpSeven
# run in magento root directory
# one-liner to apply patch using wget
wget -qO- 'https://gist.githubusercontent.com/MageMechanic/66449504110fbbd96214/raw/php7_magento_1_9_core.patch' | patch -p0
# one-liner to apply patch using curl
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
diff --git a/app/code/core/Mage/Core/Model/Layout.php b/app/code/core/Mage/Core/Model/Layout.php | |
index f5dc619..373736d 100644 | |
--- a/app/code/core/Mage/Core/Model/Layout.php | |
+++ b/app/code/core/Mage/Core/Model/Layout.php | |
@@ -552,7 +552,7 @@ class Mage_Core_Model_Layout extends Varien_Simplexml_Config | |
$out = ''; | |
if (!empty($this->_output)) { | |
foreach ($this->_output as $callback) { | |
- $out .= $this->getBlock($callback[0])->$callback[1](); | |
+ $out .= $this->getBlock($callback[0])->{$callback[1]}(); |