Merge "resourceloader: Use upsert() instead of replace() for module_deps write"
[lhc/web/wiklou.git] / includes / poolcounter / PoolWorkArticleView.php
index 7ddedb9..534e86b 100644 (file)
@@ -19,7 +19,7 @@
  */
 
 class PoolWorkArticleView extends PoolCounterWork {
-       /** @var Page */
+       /** @var WikiPage */
        private $page;
 
        /** @var string */
@@ -44,7 +44,7 @@ class PoolWorkArticleView extends PoolCounterWork {
        private $error = false;
 
        /**
-        * @param Page $page
+        * @param WikiPage $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.
@@ -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.
         */
-       public function __construct( Page $page, ParserOptions $parserOptions,
+       public function __construct( WikiPage $page, ParserOptions $parserOptions,
                $revid, $useParserCache, $content = null
        ) {
                if ( is_string( $content ) ) { // BC: old style call
@@ -147,6 +147,7 @@ class PoolWorkArticleView extends PoolCounterWork {
                        $logger->info( '{time} {title}', [
                                'time' => number_format( $time, 2 ),
                                'title' => $this->page->getTitle()->getPrefixedDBkey(),
+                               'ns' => $this->page->getTitle()->getNamespace(),
                                'trigger' => 'view',
                        ] );
                }