/** * this function renames a folder * * @param string $path - the full path * @param string $newName - the new name */ public static function renameFolder($path, $newName) { $path = self::getMediaPath($path); //get the new name $parent = Digitalus_Toolbox_String::getParentFromPath($path); $newpath = $parent . '/' . $newName; if (Digitalus_Filesystem_Dir::rename($path, $newpath)) { return $newpath; } return false; }
$updater->run(); $view->placeholder('form')->set($view->render('update1.phtml')); } catch (Digitalus_Updater_Exception $e) { $updater->addError('A fatal error while updating the databases occurred!'); $updater->addError($e->getMessage()); } break; } } else { $updater->addError('You can only update from version ' . Digitalus_Updater_Abstract::getOldVersion() . '!<br />Older versions are not supported!'); } } else { // The cms is already installed // Remove the install directory # Digitalus_Filesystem_Dir::deleteRecursive('./install'); Digitalus_Filesystem_Dir::rename('./install', './install_hidden'); // Return to the index file header('location: ./'); } /* ***************************************************************************** * F R E S H I N S T A L L * ************************************************************************** */ } else { // Fetch the current step $step = $_GET['step']; $step = intval($step); if ($step < 1) { $step = 1; } switch ($step) { case 1: