Skip to content

Commit

Permalink
Merge c0ee1b8 into 3aafd84
Browse files Browse the repository at this point in the history
  • Loading branch information
akagane99 committed Dec 31, 2018
2 parents 3aafd84 + c0ee1b8 commit 6837afa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
13 changes: 11 additions & 2 deletions View/Elements/Topics/header.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,22 @@
* @license http://www.netcommons.org/license.txt NetCommons License
* @copyright Copyright 2014, NetCommons Project
*/
$named = $this->Paginator->params['named'];
$named['page'] = '1';
$url = NetCommonsUrl::blockUrl($named);
?>

<header>
<?php if ($topicFrameSetting['unit_type'] === TopicFrameSetting::UNIT_TYPE_DAYS) : ?>
<?php echo $this->DisplayNumber->dropDownToggleDays(array('currentDays' => $topicFrameSetting['display_days'])); ?>
<?php echo $this->DisplayNumber->dropDownToggleDays(array(
'currentDays' => $topicFrameSetting['display_days'],
'url' => $url
)); ?>
<?php else : ?>
<?php echo $this->DisplayNumber->dropDownToggle(array('currentLimit' => $topicFrameSetting['display_number'])); ?>
<?php echo $this->DisplayNumber->dropDownToggle(array(
'currentLimit' => $topicFrameSetting['display_number'],
'url' => $url
)); ?>
<?php endif; ?>

<?php if (Current::read('User.id')) : ?>
Expand Down
2 changes: 1 addition & 1 deletion View/Elements/Topics/select_status.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ul class="dropdown-menu" role="menu">
<?php foreach ($options as $key => $label) : ?>
<li>
<?php echo $this->Paginator->link($label, $url + ['status' => $key]); ?>
<?php echo $this->Paginator->link($label, array_merge($url, ['status' => $key])); ?>
</li>
<?php endforeach; ?>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion View/Topics/json/index_plugins.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ $pluginKey = $this->request->query['plugin_key'];
echo $this->NetCommonsHtml->json(array(
'paging' => $topics[$pluginKey]['paging'],
'topics' => $this->Topics->camelizeKeyRecursive($topics[$pluginKey]['topics'])
));
), 'OK', 200, false);
2 changes: 1 addition & 1 deletion View/Topics/json/index_rooms.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ $roomId = $this->request->query['room_id'];
echo $this->NetCommonsHtml->json(array(
'paging' => $topics[$roomId]['paging'],
'topics' => $this->Topics->camelizeKeyRecursive($topics[$roomId]['topics'])
));
), 'OK', 200, false);

0 comments on commit 6837afa

Please sign in to comment.