예제 #1
0
 function update_objects($action = 'draft')
 {
     $all = pl_opt($this->slug);
     if ($action == 'publish') {
         $all['live'] = $all['draft'];
     } elseif ($action == 'revert') {
         $all['draft'] = $all['live'];
     } else {
         $all['draft'] = $this->objects;
     }
     pl_opt_update($this->slug, $all);
 }
예제 #2
0
 function revert_global($map)
 {
     pl_revert_settings();
     pl_opt_update($this->slug, false);
 }