Commit c0899b62 authored by merlinofchaos's avatar merlinofchaos

Fix pager which was claiming to be full but showing mini for a setting that was sort of in between.

parent 8332d948
...@@ -652,7 +652,7 @@ class views_plugin_display extends views_plugin { ...@@ -652,7 +652,7 @@ class views_plugin_display extends views_plugin {
$options['use_pager'] = array( $options['use_pager'] = array(
'category' => 'basic', 'category' => 'basic',
'title' => t('Use pager'), 'title' => t('Use pager'),
'value' => $this->get_option('use_pager') ? ($this->get_option('use_pager') == 'mini' ? t('Mini') : t('Yes')) : t('No'), 'value' => $this->get_option('use_pager') ? ($this->get_option('use_pager') === 'mini' ? t('Mini') : t('Yes')) : t('No'),
'desc' => t("Change this display's pager setting."), 'desc' => t("Change this display's pager setting."),
); );
} }
......
...@@ -75,7 +75,7 @@ function template_preprocess_views_view(&$vars) { ...@@ -75,7 +75,7 @@ function template_preprocess_views_view(&$vars) {
$vars['pager'] = ''; $vars['pager'] = '';
if (!empty($view->pager['use_pager'])) { if (!empty($view->pager['use_pager'])) {
$pager_type = $view->pager['use_pager'] == 'mini' ? 'views_mini_pager' : 'pager'; $pager_type = ($view->pager['use_pager'] === 'mini' ? 'views_mini_pager' : 'pager');
$vars['pager'] = theme($pager_type, $view->exposed_input, $view->pager['items_per_page'], $view->pager['element']); $vars['pager'] = theme($pager_type, $view->exposed_input, $view->pager['items_per_page'], $view->pager['element']);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment