X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpathsadminpanel.php;h=6b11df6f317131c4a265f9b0f8355741176f1acd;hb=50f9f23ff19a4f577c429d80411378d6a1747725;hp=83ab776a60fe69614702820ade878adf502d99fd;hpb=cb183359e23ae7a5cfb483fa06c6c4b7a8b05fff;p=quix0rs-gnu-social.git diff --git a/actions/pathsadminpanel.php b/actions/pathsadminpanel.php index 83ab776a60..6b11df6f31 100644 --- a/actions/pathsadminpanel.php +++ b/actions/pathsadminpanel.php @@ -24,7 +24,7 @@ * @author Evan Prodromou * @author Zach Copley * @author Sarven Capadisli - * @copyright 2008-2010 StatusNet, Inc. + * @copyright 2008-2011 StatusNet, Inc. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0 * @link http://status.net/ */ @@ -92,7 +92,6 @@ class PathsadminpanelAction extends AdminPanelAction 'site' => array('path', 'locale_path', 'ssl', 'sslserver'), 'theme' => array('server', 'dir', 'path', 'sslserver', 'sslpath'), 'avatar' => array('server', 'dir', 'path'), - 'background' => array('server', 'dir', 'path', 'sslserver', 'sslpath'), 'attachments' => array('server', 'dir', 'path', 'sslserver', 'sslpath') ); @@ -163,14 +162,6 @@ class PathsadminpanelAction extends AdminPanelAction $this->clientError(sprintf(_('Avatar directory not writable: %s.'), $values['avatar']['dir'])); } - // Validate background dir - - if (empty($values['background']['dir']) || !is_writable($values['background']['dir'])) { - // TRANS: Client error in Paths admin panel. - // TRANS: %s is the background directory that could not be written to. - $this->clientError(sprintf(_('Background directory not writable: %s.'), $values['background']['dir'])); - } - // Validate locales dir // XXX: What else do we need to validate for lacales path here? --Z @@ -426,8 +417,6 @@ class PathsAdminPanelForm extends AdminForm // TRANS: Drop down option in Paths admin panel (option for "When to use SSL"). $ssl = array('never' => _('Never'), - // TRANS: Drop down option in Paths admin panel (option for "When to use SSL"). - 'sometimes' => _('Sometimes'), // TRANS: Drop down option in Paths admin panel (option for "When to use SSL"). 'always' => _('Always')); @@ -462,7 +451,7 @@ class PathsAdminPanelForm extends AdminForm // TRANS: Button text to store form data in the Paths admin panel. $this->out->submit('save', _m('BUTTON','Save'), 'submit', // TRANS: Button title text to store form data in the Paths admin panel. - 'save', _('Save paths')); + 'save', _('Save path settings.')); } /**