Esempio n. 1
0
 /**
  * Validate the target against the loaded designs.
  * 
  * @param string                 $targetPath The target path.
  * @param Mage_Core_Model_Design $design     The current design change.
  * 
  * @return boolean
  */
 protected function _validatePath($targetPath, Mage_Core_Model_Design $design)
 {
     $availablePaths = array_filter(explode(',', $design->getTargetPath()));
     return empty($availablePaths) || in_array($targetPath, $availablePaths);
 }