diff options
author | Zach Copley <zach@status.net> | 2009-11-19 01:56:29 -0800 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2009-11-19 01:56:29 -0800 |
commit | 409ce3556d07f66e5a65e035f9d52b8421441911 (patch) | |
tree | fdd5c7c3fc298f4e111053d9fd49d2f0a7bec059 | |
parent | 08165c8f037d9530995a9b312999fa6cc0f0cc97 (diff) |
Added locales_path to site admin panel
-rw-r--r-- | actions/siteadminpanel.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/actions/siteadminpanel.php b/actions/siteadminpanel.php index b48be19a0..ce6d3f544 100644 --- a/actions/siteadminpanel.php +++ b/actions/siteadminpanel.php @@ -93,7 +93,7 @@ class SiteadminpanelAction extends AdminPanelAction static $settings = array('site' => array('name', 'broughtby', 'broughtbyurl', 'email', 'timezone', 'language', 'ssl', 'sslserver', 'site', 'path', - 'textlimit', 'dupelimit'), + 'textlimit', 'dupelimit', 'locale_path'), 'snapshot' => array('run', 'reporturl', 'frequency')); static $booleans = array('site' => array('private', 'inviteonly', 'closed', 'fancy')); @@ -216,6 +216,14 @@ class SiteadminpanelAction extends AdminPanelAction $this->clientError(_("Dupe limit must 1 or more seconds.")); } + // Validate locales path + + // XXX: What else do we need to validate for lacales path here? --Z + + if (!empty($values['site']['locale_path']) && !is_readable($values['site']['locale_path'])) { + $this->clientError(sprintf(_("Locales directory not readable: %s"), $values['site']['locale_path'])); + } + } } |