enterprisemediawiki / Wiretap

User pageview tracking for MediaWiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add 'position' => 'bottom' to $wgResourceModules

jamesmontalvo3 opened this issue · comments

In Wiretap.php need to update $wgResourceModules to include a position parameter. Currently the setup is something like:

    'resource.name' => $someResourceTemplate + array(
        'styles' => 'styles.css',
        'scripts' => array(
            'script1.js',
            'script2.js',
            'script3.js',
        ),
    ),

It needs to be like:

    'resource.name' => $someResourceTemplate + array(
        'position' => 'bottom', // added this since "bottom" was default pre-1.26
        'styles' => 'styles.css',
        'scripts' => array(
            'script1.js',
            'script2.js',
            'script3.js',
        ),
    ),