diff options
| author | Chad Kieffer <ckieffer@gmail.com> | 2011-01-04 15:59:26 -0700 |
|---|---|---|
| committer | Chad Kieffer <ckieffer@gmail.com> | 2011-01-04 15:59:26 -0700 |
| commit | e921c3c5b5b8f963f121601d346c50a24bc0cf15 (patch) | |
| tree | a29064762c3b37812596cb82c3e910f7321a85b2 /modules/gallery/libraries/MY_View.php | |
| parent | dbff45cc91ac44f18ef02b8abdd220a2864f050f (diff) | |
| parent | d74aad072d8ccca70efb1c8b673e8368566a1974 (diff) | |
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/libraries/MY_View.php')
| -rw-r--r-- | modules/gallery/libraries/MY_View.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/modules/gallery/libraries/MY_View.php b/modules/gallery/libraries/MY_View.php index ded77792..2230203a 100644 --- a/modules/gallery/libraries/MY_View.php +++ b/modules/gallery/libraries/MY_View.php @@ -23,8 +23,14 @@ class View extends View_Core { /** * Reimplement Kohana 2.3's View::set_global() functionality. */ - public function set_global($key, $value) { - View::$global_data[$key] = $value; + public function set_global($key, $value = NULL) { + if (is_array($key)) { + foreach ($key as $key2 => $value) { + View::$global_data[$key2] = $value; + } + } else { + View::$global_data[$key] = $value; + } } public function is_set($key=null) { |
