summaryrefslogtreecommitdiff
path: root/includes/pager.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-22 14:34:23 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-22 14:34:23 +0000
commit36ec18969549ff173b45ae35577e035c2c19f641 (patch)
tree8a73f48534a188f946e6edf5ecad90f837ce3d84 /includes/pager.inc
parent73a72337bb4c296211c5cb728b027ad0fefa85ed (diff)
downloadbrdo-36ec18969549ff173b45ae35577e035c2c19f641.tar.gz
brdo-36ec18969549ff173b45ae35577e035c2c19f641.tar.bz2
#326539 by JohnAlbin, sun, cha0s, ultimateboy, Rob Loach, Damien Tournoud: Convert 'class' attribute to use an array, not a string.
Diffstat (limited to 'includes/pager.inc')
-rw-r--r--includes/pager.inc20
1 files changed, 10 insertions, 10 deletions
diff --git a/includes/pager.inc b/includes/pager.inc
index 2b6a03291..26b9eb833 100644
--- a/includes/pager.inc
+++ b/includes/pager.inc
@@ -298,13 +298,13 @@ function theme_pager($tags = array(), $element = 0, $parameters = array(), $quan
if ($pager_total[$element] > 1) {
if ($li_first) {
$items[] = array(
- 'class' => 'pager-first',
+ 'class' => array('pager-first'),
'data' => $li_first,
);
}
if ($li_previous) {
$items[] = array(
- 'class' => 'pager-previous',
+ 'class' => array('pager-previous'),
'data' => $li_previous,
);
}
@@ -313,7 +313,7 @@ function theme_pager($tags = array(), $element = 0, $parameters = array(), $quan
if ($i != $pager_max) {
if ($i > 1) {
$items[] = array(
- 'class' => 'pager-ellipsis',
+ 'class' => array('pager-ellipsis'),
'data' => '…',
);
}
@@ -321,26 +321,26 @@ function theme_pager($tags = array(), $element = 0, $parameters = array(), $quan
for (; $i <= $pager_last && $i <= $pager_max; $i++) {
if ($i < $pager_current) {
$items[] = array(
- 'class' => 'pager-item',
+ 'class' => array('pager-item'),
'data' => theme('pager_previous', $i, $element, ($pager_current - $i), $parameters),
);
}
if ($i == $pager_current) {
$items[] = array(
- 'class' => 'pager-current',
+ 'class' => array('pager-current'),
'data' => $i,
);
}
if ($i > $pager_current) {
$items[] = array(
- 'class' => 'pager-item',
+ 'class' => array('pager-item'),
'data' => theme('pager_next', $i, $element, ($i - $pager_current), $parameters),
);
}
}
if ($i < $pager_max) {
$items[] = array(
- 'class' => 'pager-ellipsis',
+ 'class' => array('pager-ellipsis'),
'data' => '…',
);
}
@@ -348,17 +348,17 @@ function theme_pager($tags = array(), $element = 0, $parameters = array(), $quan
// End generation.
if ($li_next) {
$items[] = array(
- 'class' => 'pager-next',
+ 'class' => array('pager-next'),
'data' => $li_next,
);
}
if ($li_last) {
$items[] = array(
- 'class' => 'pager-last',
+ 'class' => array('pager-last'),
'data' => $li_last,
);
}
- return theme('item_list', $items, NULL, 'ul', array('class' => 'pager'));
+ return theme('item_list', $items, NULL, 'ul', array('class' => array('pager')));
}
}