Skip to content

Commit

Permalink
fix: 新着で表示件数を変更、日数表示になる不具合対応 NetCommons3/NetCommons3#1253
Browse files Browse the repository at this point in the history
日数表示の日数変更後、Undefined index対応 NetCommons3/NetCommons3#1410
  • Loading branch information
akagane99 committed Dec 31, 2018
1 parent a1457ae commit 3d39fa6
Showing 1 changed file with 11 additions and 2 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

0 comments on commit 3d39fa6

Please sign in to comment.