10) && file_exists( JPATH_INSTALLATION . DS . 'index.php' )) { $config['default_task'] = 'removedir'; } else { $config['default_task'] = 'lang'; } $controller = new JInstallationController($config); $controller->initialize(); // Set some paths $controller->addViewPath ( $here.DS.'views' ); $controller->addModelPath( $here.DS.'models' ); // Process the request $task = JRequest::getCmd( 'task' ); $controller->execute( $task );