Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Dispatch event
- *
- * Calls all observer callbacks registered for this event
- * and multiple observers matching event name pattern
- *
- * @param string $name
- * @param array $data
- * @return Mage_Core_Model_App
- */
- public static function dispatchEvent($name, array $data = array())
- {
- Mage::log($name, null, 'events.log', true); //add this line
- Varien_Profiler::start('DISPATCH EVENT:'.$name);
- $result = self::app()->dispatchEvent($name, $data);
- Varien_Profiler::stop('DISPATCH EVENT:'.$name);
- return $result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement