Mage::$task(); } // End the task if running the normal Magento procedure if ($task == 'run') { exit; } // @todo: Set custom-logging //if($magebridge->getMeta('debug_custom_log')) { // $customErrorLog = Mage::getBaseDir().DS.'var'.DS.'log'.DS.'php_errors.log'; // ini_set('error_log', $customErrorLog); //} // Debugging $debug = Mage::getSingleton('magebridge/debug'); if (!empty($debug)) { $debug->notice("Mage::app({$app_value},{$app_type})", $app_time); } // Benchmarking yireo_benchmark('Mage::app()'); } catch (Exception $e) { // Debugging $debug = Mage::getSingleton('magebridge/debug'); if (!empty($debug)) { $debug->notice("Mage::app({$app_value},{$app_type}) failed to start", $app_time); $debug->notice("Fallback to Mage::app()", $app_time); } // Start the Magento application with default values Mage::app(); } // Run the bridge $magebridge->run(); // End