X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fpathsadminpanel.php;h=57f82e799538c717d72af11d87b79e05a21022b8;hb=0a2c51510ca785b5e3564fc0830518527929dc38;hp=0b4a5ff952615876320b6abcf7169fc7660695a3;hpb=c97048d01bea468e0cf8865b60c3c250b4515c39;p=quix0rs-gnu-social.git diff --git a/actions/pathsadminpanel.php b/actions/pathsadminpanel.php index 0b4a5ff952..57f82e7995 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 @@ -364,61 +355,7 @@ class PathsAdminPanelForm extends AdminForm $this->out->elementEnd('fieldset'); $this->out->elementStart('fieldset', array('id' => - 'settings_design_background-paths')); - // TRANS: Fieldset legend in Paths admin panel. - $this->out->element('legend', null, _('Backgrounds')); - $this->out->elementStart('ul', 'form_data'); - - $this->li(); - $this->input('server', - // TRANS: Field label in Paths admin panel. - _('Server'), - // TRANS: Tooltip for field label in Paths admin panel. - _('Server for backgrounds.'), - 'background'); - $this->unli(); - - $this->li(); - $this->input('path', - // TRANS: Field label in Paths admin panel. - _('Path'), - // TRANS: Tooltip for field label in Paths admin panel. - _('Web path to backgrounds.'), - 'background'); - $this->unli(); - - $this->li(); - $this->input('sslserver', - // TRANS: Field label in Paths admin panel. - _('SSL server'), - // TRANS: Tooltip for field label in Paths admin panel. - _('Server for backgrounds on SSL pages.'), - 'background'); - $this->unli(); - - $this->li(); - $this->input('sslpath', - // TRANS: Field label in Paths admin panel. - _('SSL path'), - // TRANS: Tooltip for field label in Paths admin panel. - _('Web path to backgrounds on SSL pages.'), - 'background'); - $this->unli(); - - $this->li(); - $this->input('dir', - // TRANS: Field label in Paths admin panel. - _('Directory'), - // TRANS: Tooltip for field label in Paths admin panel. - _('Directory where backgrounds are located.'), - 'background'); - $this->unli(); - - $this->out->elementEnd('ul'); - $this->out->elementEnd('fieldset'); - - $this->out->elementStart('fieldset', array('id' => - 'settings_design_attachments-paths')); + 'settings_attachments-paths')); // TRANS: Fieldset legens in Paths admin panel. $this->out->element('legend', null, _('Attachments')); @@ -516,7 +453,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.')); } /**