enterprisemediawiki / Wiretap

User pageview tracking for MediaWiki
4 stars 6 forks source link

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

Open jamesmontalvo3 opened 8 years ago

jamesmontalvo3 commented 8 years ago

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',
        ),
    ),