* Finish task #8085.

This commit is contained in:
holan20180123
2020-10-12 15:49:46 +08:00
parent 4141f6d8fa
commit 7f49f1f614
7 changed files with 100 additions and 121 deletions
-18
View File
@@ -1425,24 +1425,6 @@ EOD;
$preAndNextObject->pre = '';
$preAndNextObject->next = '';
if($type == 'story' and !empty($_SESSION['planStoryOrder']))
{
$objects = explode(',', $_SESSION['planStoryOrder']);
$key = array_search($objectID, $objects);
if($key > 0)
{
$preObjectID = $objects[$key - 1];
$preAndNextObject->pre = $this->loadModel('story')->getByID($preObjectID);
}
if($key < (count($objects) - 1))
{
$nextObjectID = $objects[$key + 1];
$preAndNextObject->next = $this->loadModel('story')->getByID($nextObjectID);
}
return $preAndNextObject;
}
/* Get objectIDList. */
$table = $this->config->objectTables[$type];
$queryCondition = $type . 'QueryCondition';