dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply changes made live on Wikimedia cluster related to preprocessor caching to subve...
[lhc/web/wiklou.git]
/
includes
/
Pager.php
diff --git
a/includes/Pager.php
b/includes/Pager.php
index
22cac27
..
8faec53
100644
(file)
--- a/
includes/Pager.php
+++ b/
includes/Pager.php
@@
-315,7
+315,7
@@
abstract class IndexPager implements Pager {
$attrs['class'] = "mw-{$type}link";
}
return $this->getSkin()->link( $this->getTitle(), $text,
$attrs['class'] = "mw-{$type}link";
}
return $this->getSkin()->link( $this->getTitle(), $text,
- $attrs, $query + $this->getDefaultQuery(),
'known'
);
+ $attrs, $query + $this->getDefaultQuery(),
array('noclasses','known')
);
}
/**
}
/**
@@
-530,10
+530,10
@@
abstract class AlphabeticPager extends IndexPager {
$pagingLinks = $this->getPagingLinks( $linkTexts );
$limitLinks = $this->getLimitLinks();
$pagingLinks = $this->getPagingLinks( $linkTexts );
$limitLinks = $this->getLimitLinks();
- $limits =
implode( ' | ',
$limitLinks );
+ $limits =
$wgLang->pipeList(
$limitLinks );
$this->mNavigationBar =
$this->mNavigationBar =
- "(
{$pagingLinks['first']} | {$pagingLinks['last']}
) " .
+ "(
" . $wgLang->pipeList( array( $pagingLinks['first'], $pagingLinks['last'] ) ) . "
) " .
wfMsgHtml( 'viewprevnext', $pagingLinks['prev'],
$pagingLinks['next'], $limits );
wfMsgHtml( 'viewprevnext', $pagingLinks['prev'],
$pagingLinks['next'], $limits );
@@
-549,7
+549,7
@@
abstract class AlphabeticPager extends IndexPager {
if( $first ) {
$first = false;
} else {
if( $first ) {
$first = false;
} else {
- $extra .=
' | '
;
+ $extra .=
wfMsgExt( 'pipe-separator' , 'escapenoentities' )
;
}
if( $order == $this->mOrderType ) {
}
if( $order == $this->mOrderType ) {
@@
-610,9
+610,9
@@
abstract class ReverseChronologicalPager extends IndexPager {
$pagingLinks = $this->getPagingLinks( $linkTexts );
$limitLinks = $this->getLimitLinks();
$pagingLinks = $this->getPagingLinks( $linkTexts );
$limitLinks = $this->getLimitLinks();
- $limits =
implode( ' | ',
$limitLinks );
+ $limits =
$wgLang->pipeList(
$limitLinks );
- $this->mNavigationBar = "({$pagingLinks['first']}
|
{$pagingLinks['last']}) " .
+ $this->mNavigationBar = "({$pagingLinks['first']}
" . wfMsgExt( 'pipe-separator' , 'escapenoentities' ) . "
{$pagingLinks['last']}) " .
wfMsgHtml("viewprevnext", $pagingLinks['prev'], $pagingLinks['next'], $limits);
return $this->mNavigationBar;
}
wfMsgHtml("viewprevnext", $pagingLinks['prev'], $pagingLinks['next'], $limits);
return $this->mNavigationBar;
}
@@
-745,7
+745,8
@@
abstract class TablePager extends IndexPager {
}
function formatRow( $row ) {
}
function formatRow( $row ) {
- $s = "<tr>\n";
+ $rowClass = $this->getRowClass( $row );
+ $s = "<tr class=\"$rowClass\">\n";
$fieldNames = $this->getFieldNames();
$this->mCurrentRow = $row; # In case formatValue needs to know
foreach ( $fieldNames as $field => $name ) {
$fieldNames = $this->getFieldNames();
$this->mCurrentRow = $row; # In case formatValue needs to know
foreach ( $fieldNames as $field => $name ) {
@@
-761,6
+762,10
@@
abstract class TablePager extends IndexPager {
return $s;
}
return $s;
}
+ function getRowClass($row) {
+ return '';
+ }
+
function getIndexField() {
return $this->mSort;
}
function getIndexField() {
return $this->mSort;
}