$this->original = Notice::staticGet('id', $id);
if (empty($this->original)) {
- $this->clientError(_('No such notice'),
+ $this->clientError(_('No such notice.'),
400, $this->format);
return false;
}
$this->showJsonTimeline($strm);
break;
default:
- $this->clientError(_('API method not found!'), $code = 404);
+ $this->clientError(_('API method not found.'), $code = 404);
break;
}
}
+
+ /**
+ * Return true if read only.
+ *
+ * MAY override
+ *
+ * @param array $args other arguments
+ *
+ * @return boolean is read only action?
+ */
+
+ function isReadOnly($args)
+ {
+ return true;
+ }
}