예제 #1
0
 static function updateContent()
 {
     $result = false;
     if (get('cancel-update-content')) {
         go(showurl('content'));
         return false;
     }
     if (get('update-content')) {
         $result = data::updateContent();
         if (success($result)) {
             go(showurl('content'));
         }
         growl($result);
     }
     return $result;
 }