private function applyProfile($profileFile) { // By the time a profile install is requested, the installation should be functional enough to work require_once 'tiki-setup.php'; $directory = dirname($profileFile); $profile = substr(basename($profileFile), 0, -4); $profile = Tiki_Profile::fromFile($directory, $profile); $tx = $this->begin(); $installer = new Tiki_Profile_Installer(); $installer->install($profile); $tx->commit(); }