Topic on Extension talk:Lingo

Warning: OutputPage::getModuleStyles: style module should define its position explicitly: ext.Lingo.Styles ResourceLoaderFileModule

4
Legaulph (talkcontribs)

I have upgraded to mediawiki 1.26.2

I'm seeing this issue

Warning: OutputPage::getModuleStyles: style module should define its position explicitly: ext.Lingo.Styles ResourceLoaderFileModule [Called from OutputPage::getModuleStyles in /app/mediawiki/mw/includes/OutputPage.php at line 623] in/app/mediawiki/mw/includes/debug/MWDebug.php on line 300

Legaulph (talkcontribs)

OK I think I fixed it

I updated Lingo.php with 'position' => 'top',

<code>

$resourceModules = array(

                        'ext.Lingo.Styles'  => array(

                                        'position' => 'top',

                                        'localBasePath' => $dir,

                                        'remoteExtPath' => 'Lingo',

                                        'styles'        => 'skins/Lingo.css',

                        ),

                        'ext.Lingo.Scripts' => array(

                                        'position' => 'top',

                                        'localBasePath' => $dir,

                                        'remoteExtPath' => 'Lingo',

                                        'scripts'       => 'libs/Lingo.js',

                                        'dependencies'  => 'ext.jquery.qtip',

                        ),

                        'ext.jquery.qtip'   => array(

                                        'position' => 'top',

                                        'localBasePath' => $dir,

                                        'remoteExtPath' => 'Lingo',

                                        'scripts'       => 'libs/jquery.qtip.js',

                                        'styles'        => 'skins/jquery.qtip.css',

                        ),

</code>

GregRundlett (talkcontribs)

Actually, you just need the

'position' => 'top',

line in the ext.Lingo.Styles stanza

GregRundlett (talkcontribs)

^^ This was merged into master