Exemple #1
0
 public function update($input = array(), $lang = null)
 {
     $data = $this->filterInput($input);
     $this->changes()->discard();
     parent::update($data, $lang);
     kirby()->trigger('panel.site.update', $this);
 }
Exemple #2
0
 public function update($input = array(), $lang = null)
 {
     // keep the old state of the site object
     $old = clone $this;
     $data = $this->filterInput($input);
     $this->changes()->discard();
     parent::update($data, $lang);
     kirby()->trigger('panel.site.update', array($this, $old));
 }