Menu icons in mobile menu are shown again.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 22 Jun 2021 20:43:01 +0000 (22:43 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Tue, 22 Jun 2021 20:43:01 +0000 (22:43 +0200)
extension.json
wrreport_body.php

index 806d7bbf0f4dcabb1862ede31897837e35ee2933..41f2494d91b8182e0937be841440f8e6230ff826 100644 (file)
@@ -45,6 +45,7 @@
        },
        "Hooks": {
                "ParserFirstCallInit": "WrReport::ParserFirstCallInitHook",
+               "BeforePageDisplayMobile": "WrReport::BeforePageDisplayMobileHook",
                "MobileMenu": "WrReport::MobileMenuHook"
        },
        "config": {
index c5669096b0224b03e57cefdcfa3b648922ebb4b9..53b3d524a9d40aaa277b7775c39a3b9cf6353ab7 100644 (file)
@@ -645,6 +645,10 @@ class WrReport {
                return true;
        }
 
+       public static function BeforePageDisplayMobileHook(OutputPage &$output, Skin &$skin) {
+               $output->addModules('ext.wrreport.icons');
+       }
+
        /// \brief Is called when the tag <bahnberichtformular/> is encountered.
        ///
        /// The current page name is taken.