This file contains 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
preg_match("/yt\.setConfig\(\{\s+\'PLAYER_CONFIG\'\:\s(?<config>.*?)\s+\}\)/s", $page, $matches); | |
$config = json_decode($matches['config']); | |
$fmts = explode(',', $config->args->url_encoded_fmt_stream_map); | |
foreach( $fmts as $k => $v ) { parse_str($v, $fmts[$k]); } |
This file contains 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
<?php | |
// Quick bug fix for Issue #24837 (http://www.magentocommerce.com/bug-tracking/issue/?issue=10453) | |
$rootBlock = Mage::app()->getLayout()->getBlock('root'); | |
if ( false !== $rootBlock ) { | |
foreach ( Mage::getModel('page/config')->getPageLayouts() as $pageLayout ) { | |
NewerOlder