mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-11-24 08:23:30 +00:00
refactor: use array style on adding modules to ParserOutput
String is deprecated since 1.38 (T296123) Closes #11
This commit is contained in:
parent
4ef6221d6c
commit
91105aa338
|
@ -37,7 +37,7 @@ class TabberNeueHooks {
|
||||||
* @return string HTML
|
* @return string HTML
|
||||||
*/
|
*/
|
||||||
public static function renderTabber( $input, array $args, Parser $parser, PPFrame $frame ) {
|
public static function renderTabber( $input, array $args, Parser $parser, PPFrame $frame ) {
|
||||||
$parser->getOutput()->addModules( 'ext.tabberNeue' );
|
$parser->getOutput()->addModules( [ 'ext.tabberNeue' ] );
|
||||||
$arr = explode( "|-|", $input );
|
$arr = explode( "|-|", $input );
|
||||||
$htmlTabs = '';
|
$htmlTabs = '';
|
||||||
foreach ( $arr as $tab ) {
|
foreach ( $arr as $tab ) {
|
||||||
|
|
Loading…
Reference in a new issue