Deprecate is_grouping in favor of isStory

This commit is contained in:
Benoît Burnichon
2015-07-13 18:14:51 +02:00
parent 2107cd28df
commit c97eedd40f
20 changed files with 43 additions and 43 deletions

View File

@@ -170,7 +170,7 @@ class StoryController extends Controller
{
$story = new \record_adapter($this->app, $sbas_id, $record_id);
if (!$story->is_grouping()) {
if (!$story->isStory()) {
throw new \Exception('This is not a story');
}
@@ -184,7 +184,7 @@ class StoryController extends Controller
try {
$story = new \record_adapter($this->app, $sbas_id, $record_id);
if (!$story->is_grouping()) {
if (!$story->isStory()) {
throw new \Exception('This is not a story');
}