Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5976139
ScribuntoHookHandler.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
494 B
Referenced Files
None
Subscribers
None
ScribuntoHookHandler.php
View Options
<?php
namespace
MediaWiki\Extension\Translate\MessageBundleTranslation
;
use
MediaWiki\Extension\Scribunto\Hooks\ScribuntoExternalLibrariesHook
;
class
ScribuntoHookHandler
implements
ScribuntoExternalLibrariesHook
{
public
function
onScribuntoExternalLibraries
(
string
$engine
,
array
&
$extraLibraries
):
void
{
if
(
$engine
!==
'lua'
)
{
return
;
}
$extraLibraries
[
'mw.ext.translate.messageBundle'
]
=
[
'class'
=>
MessageBundleLuaLibrary
::
class
,
'deferLoad'
=>
true
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 18:52 (1 d, 22 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
d0/c2/cf7afe9decbc12ba3ca5c690d6b0
Default Alt Text
ScribuntoHookHandler.php (494 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment