Skip to content

Commit

Permalink
Only merge the _defaults keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Dec 9, 2014
1 parent dc41a1f commit dc70da9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/View/Helper/PaginatorHelper.php
Expand Up @@ -499,7 +499,8 @@ protected function _pagingLink($which, $title = null, $options = array(), $disab
if (!empty($disabledTitle) && $disabledTitle !== true) {
$title = $disabledTitle;
}
$options = (array)$disabledOptions + $options + $_defaults;

$options = (array)$disabledOptions + array_intersect_key($options, array_keys($_defaults)) + $_defaults;
} elseif (!$this->{$check}($options['model'])) {
return '';
}
Expand Down

0 comments on commit dc70da9

Please sign in to comment.