./mage config-set preferred_state stable
./mage clear-cache
./mage sync
./mage download community Module_Name
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
| // broken data | |
| $data = ''; | |
| function check_for_broken($serialized_string){ | |
| // security check + check if no need for fix | |
| if ( !preg_match('/^[aOs]:/', $serialized_string) || @unserialize($serialized_string) !== false ) return $serialized_string; | |
| return preg_replace_callback( '/s\:(\d+)\:\"(.*?)\";/s', function($matches){return 's:'.strlen($matches[2]).':"'.$matches[2].'";'; }, $serialized_string ); | |
| } |
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
| <block type="cms/block" name="block_name"> | |
| <action method="setBlockId"><id>block_code</id></action> | |
| </block> | |
| {{block type="cms/block" block_id="block_code"}} | |
| {{block type="catalog/product_list" category_id="79" template="catalog/product/list_random.phtml"}} |