| @@ 184-188 (lines=5) @@ | ||
| 181 | $story->setPublished(time()); |
|
| 182 | } |
|
| 183 | $story->setTopicalign('R'); |
|
| 184 | if (!$story->store()) { |
|
| 185 | $this->response->add(new XoopsXmlRpcFault(106)); |
|
| 186 | } else { |
|
| 187 | $this->response->add(new XoopsXmlRpcBoolean(true)); |
|
| 188 | } |
|
| 189 | } |
|
| 190 | } |
|
| 191 | } |
|
| @@ 209-213 (lines=5) @@ | ||
| 206 | return; |
|
| 207 | } |
|
| 208 | $story = new NewsStory($this->params[0]); |
|
| 209 | if (!$story->delete()) { |
|
| 210 | $this->response->add(new XoopsXmlRpcFault(106)); |
|
| 211 | } else { |
|
| 212 | $this->response->add(new XoopsXmlRpcBoolean(true)); |
|
| 213 | } |
|
| 214 | } |
|
| 215 | } |
|
| 216 | } |
|