Article: Add RL modules for the ParserOutput when showing CSS/JS page
[lhc/web/wiklou.git] / includes / Article.php
index 2d3240b..04972bc 100644 (file)
@@ -822,8 +822,10 @@ class Article implements Page {
                                'ShowRawCssJs',
                                array( $this->mContentObject, $this->getTitle(), $outputPage ) )
                        ) {
+                               // If no legacy hooks ran, display the content of the parser output, including RL modules,
+                               // but excluding metadata like categories and language links
                                $po = $this->mContentObject->getParserOutput( $this->getTitle() );
-                               $outputPage->addHTML( $po->getText() );
+                               $outputPage->addParserOutputContent( $po );
                        }
                }
        }