Exemple #1
0
/**
 * @todo if thumbname size has changed, advise user to regenerate thumbs
 */
function saveConfig()
{
    global $rsgConfig;
    $rsgConfig = new rsgConfig();
    if ($rsgConfig->saveConfig($_REQUEST)) {
        HTML_RSGALLERY::printAdminMsg(JText::_('Configuration Saved'));
        // save successful, try creating some image directories if we were asked to
        if (rsgInstance::getVar('createImgDirs')) {
            HTML_RSGALLERY::printAdminMsg(JText::_('Creating Image directories not Implemented yet.'), true);
        }
    } else {
        HTML_RSGALLERY::printAdminMsg(JText::_('Error Saving Configuration'));
    }
}