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
API: Clean up uncaught exception backtrace output
[lhc/web/wiklou.git]
/
includes
/
actions
/
HistoryAction.php
diff --git
a/includes/actions/HistoryAction.php
b/includes/actions/HistoryAction.php
index
8522e56
..
6ee5d2c
100644
(file)
--- a/
includes/actions/HistoryAction.php
+++ b/
includes/actions/HistoryAction.php
@@
-196,11
+196,15
@@
class HistoryAction extends FormlessAction {
) . ' ' .
( $tagSelector ? ( implode( ' ', $tagSelector ) . ' ' ) : '' ) .
$checkDeleted .
) . ' ' .
( $tagSelector ? ( implode( ' ', $tagSelector ) . ' ' ) : '' ) .
$checkDeleted .
- Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) . "\n" .
+ Html::submitButton(
+ $this->msg( 'allpagessubmit' )->text(),
+ array(),
+ array( 'mw-ui-progressive' )
+ ) . "\n" .
'</fieldset></form>'
);
'</fieldset></form>'
);
-
wfRunHooks
( 'PageHistoryBeforeList', array( &$this->page, $this->getContext() ) );
+
Hooks::run
( 'PageHistoryBeforeList', array( &$this->page, $this->getContext() ) );
// Create and output the list.
$pager = new HistoryPager( $this, $year, $month, $tagFilter, $conds );
// Create and output the list.
$pager = new HistoryPager( $this, $year, $month, $tagFilter, $conds );
@@
-416,7
+420,7
@@
class HistoryPager extends ReverseChronologicalPager {
$queryInfo['options'],
$this->tagFilter
);
$queryInfo['options'],
$this->tagFilter
);
-
wfRunHooks
( 'PageHistoryPager::getQueryInfo', array( &$this, &$queryInfo ) );
+
Hooks::run
( 'PageHistoryPager::getQueryInfo', array( &$this, &$queryInfo ) );
return $queryInfo;
}
return $queryInfo;
}
@@
-485,12
+489,10
@@
class HistoryPager extends ReverseChronologicalPager {
// Button container stored in $this->buttons for re-use in getEndBody()
$this->buttons = '<div>';
$className = 'historysubmit mw-history-compareselectedversions-button';
// Button container stored in $this->buttons for re-use in getEndBody()
$this->buttons = '<div>';
$className = 'historysubmit mw-history-compareselectedversions-button';
- if ( $this->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) {
- $className .= ' mw-ui-button mw-ui-constructive';
- }
+ $attrs = array( 'class' => $className )
+ + Linker::tooltipAndAccesskeyAttribs( 'compareselectedversions' );
$this->buttons .= $this->submitButton( $this->msg( 'compareselectedversions' )->text(),
$this->buttons .= $this->submitButton( $this->msg( 'compareselectedversions' )->text(),
- array( 'class' => $className )
- + Linker::tooltipAndAccesskeyAttribs( 'compareselectedversions' )
+ $attrs
) . "\n";
if ( $this->getUser()->isAllowed( 'deleterevision' ) ) {
) . "\n";
if ( $this->getUser()->isAllowed( 'deleterevision' ) ) {
@@
-561,7
+563,7
@@
class HistoryPager extends ReverseChronologicalPager {
function submitButton( $message, $attributes = array() ) {
# Disable submit button if history has 1 revision only
if ( $this->getNumRows() > 1 ) {
function submitButton( $message, $attributes = array() ) {
# Disable submit button if history has 1 revision only
if ( $this->getNumRows() > 1 ) {
- return
X
ml::submitButton( $message, $attributes );
+ return
Ht
ml::submitButton( $message, $attributes );
} else {
return '';
}
} else {
return '';
}
@@
-708,7
+710,7
@@
class HistoryPager extends ReverseChronologicalPager {
}
}
// Allow extension to add their own links here
}
}
// Allow extension to add their own links here
-
wfRunHooks
( 'HistoryRevisionTools', array( $rev, &$tools ) );
+
Hooks::run
( 'HistoryRevisionTools', array( $rev, &$tools ) );
if ( $tools ) {
$s2 .= ' ' . $this->msg( 'parentheses' )->rawParams( $lang->pipeList( $tools ) )->escaped();
if ( $tools ) {
$s2 .= ' ' . $this->msg( 'parentheses' )->rawParams( $lang->pipeList( $tools ) )->escaped();
@@
-726,7
+728,7
@@
class HistoryPager extends ReverseChronologicalPager {
$s .= ' <span class="mw-changeslist-separator">. .</span> ' . $s2;
}
$s .= ' <span class="mw-changeslist-separator">. .</span> ' . $s2;
}
-
wfRunHooks
( 'PageHistoryLineEnding', array( $this, &$row, &$s, &$classes ) );
+
Hooks::run
( 'PageHistoryLineEnding', array( $this, &$row, &$s, &$classes ) );
$attribs = array();
if ( $classes ) {
$attribs = array();
if ( $classes ) {