Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5978003
ScribuntoHooks.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
631 B
Referenced Files
None
Subscribers
None
ScribuntoHooks.php
View Options
<?php
namespace
MediaWiki\Extension\TitleBlacklist
;
use
MediaWiki\Extension\Scribunto\Hooks\ScribuntoExternalLibrariesHook
;
/**
* Hooks from Scribunto extension,
* which is optional to use with this extension.
*
* @ingroup Extensions
*/
class
ScribuntoHooks
implements
ScribuntoExternalLibrariesHook
{
/**
* External Lua library for Scribunto
*
* @param string $engine
* @param array &$extraLibraries
*/
public
function
onScribuntoExternalLibraries
(
string
$engine
,
array
&
$extraLibraries
)
{
if
(
$engine
===
'lua'
)
{
$extraLibraries
[
'mw.ext.TitleBlacklist'
]
=
LuaTitleBlacklistLibrary
::
class
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, Oct 3, 20:12 (3 d, 11 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
3a/a9/f60ea6e241e5675c9d2d21f6438f
Default Alt Text
ScribuntoHooks.php (631 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment