/www/slight

To get this branch, use:
bzr branch http://bzr.ed.am/www/slight

« back to all changes in this revision

Viewing changes to flight/template/View.php

  • Committer: Tim Marston
  • Date: 2015-08-05 18:48:29 UTC
  • Revision ID: tim@ed.am-20150805184829-c3qj13d1h89pkb2l
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
     */
63
63
    public function set($key, &$value = null) {
64
64
        if (is_array($key) || is_object($key)) {
65
 
            foreach ($key as $k => &$v) {
 
65
            foreach ($key as $k => $v) {
66
66
                $this->vars[$k] = $v;
67
67
            }
68
68
        }
69
69
        else {
70
 
            $this->vars[$key] = &$value;
 
70
            $this->vars[$key] = $value;
71
71
        }
72
72
    }
73
73