Remove old background validation stuff from paths admin panel
fixes http://status.net/open-source/issues/3297
This commit is contained in:
parent
8665969890
commit
a1907f20c4
|
@ -24,7 +24,7 @@
|
||||||
* @author Evan Prodromou <evan@status.net>
|
* @author Evan Prodromou <evan@status.net>
|
||||||
* @author Zach Copley <zach@status.net>
|
* @author Zach Copley <zach@status.net>
|
||||||
* @author Sarven Capadisli <csarven@status.net>
|
* @author Sarven Capadisli <csarven@status.net>
|
||||||
* @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
|
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
|
||||||
* @link http://status.net/
|
* @link http://status.net/
|
||||||
*/
|
*/
|
||||||
|
@ -92,7 +92,6 @@ class PathsadminpanelAction extends AdminPanelAction
|
||||||
'site' => array('path', 'locale_path', 'ssl', 'sslserver'),
|
'site' => array('path', 'locale_path', 'ssl', 'sslserver'),
|
||||||
'theme' => array('server', 'dir', 'path', 'sslserver', 'sslpath'),
|
'theme' => array('server', 'dir', 'path', 'sslserver', 'sslpath'),
|
||||||
'avatar' => array('server', 'dir', 'path'),
|
'avatar' => array('server', 'dir', 'path'),
|
||||||
'background' => array('server', 'dir', 'path', 'sslserver', 'sslpath'),
|
|
||||||
'attachments' => 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']));
|
$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
|
// Validate locales dir
|
||||||
|
|
||||||
// XXX: What else do we need to validate for lacales path here? --Z
|
// XXX: What else do we need to validate for lacales path here? --Z
|
||||||
|
|
Loading…
Reference in New Issue
Block a user