diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2013-02-17 16:55:12 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-02-17 16:55:12 +0000 |
commit | 22b77eded0c1fe0f6866972d97895a9e9dc26a1f (patch) | |
tree | f0286677e08b4da1d3c31e066ad6843bc6971443 /lib | |
parent | aae735fc981470a44856ec34a838c4910ac68062 (diff) | |
download | rpg-22b77eded0c1fe0f6866972d97895a9e9dc26a1f.tar.gz rpg-22b77eded0c1fe0f6866972d97895a9e9dc26a1f.tar.bz2 |
improve comments on settings::update() method
Diffstat (limited to 'lib')
-rw-r--r-- | lib/plugins/config/settings/config.class.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/plugins/config/settings/config.class.php b/lib/plugins/config/settings/config.class.php index 46e27654b..8be53b145 100644 --- a/lib/plugins/config/settings/config.class.php +++ b/lib/plugins/config/settings/config.class.php @@ -388,10 +388,12 @@ if (!class_exists('setting')) { } /** - * update setting with user provided value $input - * if value fails error check, save it + * update changed setting with user provided value $input + * - if changed value fails error check, save it to $this->_input (to allow echoing later) + * - if changed value passes error check, set $this->_local to the new value * - * @return boolean true if changed, false otherwise (incl. on error) + * @param mixed $input the new value + * @return boolean true if changed, false otherwise (incl. on error) */ function update($input) { if (is_null($input)) return false; |