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
Revert "Move NewPP limit report HTML comments to JS variables" and followups
[lhc/web/wiklou.git]
/
includes
/
poolcounter
/
PoolWorkArticleView.php
diff --git
a/includes/poolcounter/PoolWorkArticleView.php
b/includes/poolcounter/PoolWorkArticleView.php
index
3c60ea9
..
29016a8
100644
(file)
--- a/
includes/poolcounter/PoolWorkArticleView.php
+++ b/
includes/poolcounter/PoolWorkArticleView.php
@@
-19,7
+19,7
@@
*/
class PoolWorkArticleView extends PoolCounterWork {
*/
class PoolWorkArticleView extends PoolCounterWork {
- /** @var Page */
+ /** @var
Wiki
Page */
private $page;
/** @var string */
private $page;
/** @var string */
@@
-44,7
+44,7
@@
class PoolWorkArticleView extends PoolCounterWork {
private $error = false;
/**
private $error = false;
/**
- * @param Page $page
+ * @param
Wiki
Page $page
* @param ParserOptions $parserOptions ParserOptions to use for the parse
* @param int $revid ID of the revision being parsed.
* @param bool $useParserCache Whether to use the parser cache.
* @param ParserOptions $parserOptions ParserOptions to use for the parse
* @param int $revid ID of the revision being parsed.
* @param bool $useParserCache Whether to use the parser cache.
@@
-52,7
+52,7
@@
class PoolWorkArticleView extends PoolCounterWork {
* @param Content|string $content Content to parse or null to load it; may
* also be given as a wikitext string, for BC.
*/
* @param Content|string $content Content to parse or null to load it; may
* also be given as a wikitext string, for BC.
*/
- public function __construct( Page $page, ParserOptions $parserOptions,
+ public function __construct(
Wiki
Page $page, ParserOptions $parserOptions,
$revid, $useParserCache, $content = null
) {
if ( is_string( $content ) ) { // BC: old style call
$revid, $useParserCache, $content = null
) {
if ( is_string( $content ) ) { // BC: old style call
@@
-144,11
+144,11
@@
class PoolWorkArticleView extends PoolCounterWork {
if ( $time > 3 ) {
// TODO: Use Parser's logger (once it has one)
$logger = MediaWiki\Logger\LoggerFactory::getInstance( 'slow-parse' );
if ( $time > 3 ) {
// TODO: Use Parser's logger (once it has one)
$logger = MediaWiki\Logger\LoggerFactory::getInstance( 'slow-parse' );
- $logger->info( '{time} {title}',
array(
+ $logger->info( '{time} {title}',
[
'time' => number_format( $time, 2 ),
'title' => $this->page->getTitle()->getPrefixedDBkey(),
'trigger' => 'view',
'time' => number_format( $time, 2 ),
'title' => $this->page->getTitle()->getPrefixedDBkey(),
'trigger' => 'view',
-
)
);
+
]
);
}
if ( $this->cacheable && $this->parserOutput->isCacheable() && $isCurrent ) {
}
if ( $this->cacheable && $this->parserOutput->isCacheable() && $isCurrent ) {