* Finish task #8085.

This commit is contained in:
holan20180123
2020-10-10 16:56:36 +08:00
parent 4262f4c782
commit 02eb03583d
9 changed files with 112 additions and 147 deletions
-18
View File
@@ -1238,24 +1238,6 @@ EOD;
$preAndNextObject->pre = '';
$preAndNextObject->next = '';
if($type == 'story' and !empty($_SESSION['sortedIdList']))
{
$objects = explode(',', $_SESSION['sortedIdList']);
$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';