trigger('onVmAdminController', array($_controller)); if (empty($results)) { $app = JFactory::getApplication(); $app->enqueueMessage('Fatal Error in maincontroller admin.virtuemart.php: Couldnt find file '.$_controller); $app->redirect('index.php?option=com_virtuemart'); } else { foreach($results as $res){ if($res){ $exe = false;break; } } } } } else { $app = JFactory::getApplication(); $app->enqueueMessage('Fatal Error in maincontroller admin.virtuemart.php: No controller given '.$_controller); $app->redirect('index.php?option=com_virtuemart'); } if($exe){ vmJsApi::jQuery(0); // Create the controller $_class = 'VirtueMartController'.ucfirst($_controller); if(!class_exists($_class)){ vmError('Serious Error could not find controller '.$_class,'Serious error, could not find class'); $app = JFactory::getApplication(); $app->enqueueMessage('Fatal Error in maincontroller admin.virtuemart.php: No controller given '.$_controller); $app->redirect('index.php?option=com_virtuemart'); } $controller = new $_class(); // Perform the Request task $controller->execute(vRequest::getCmd('task', $_controller)); vmTime('"'.$_class.'" Finished task '.$_controller,'vmStart'); vmRam('End'); vmRamPeak('Peak'); $controller->redirect(); } // pure php no closing tag