Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1425636
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, May 16, 11:45 (15 h, 46 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
eb/b9/739dc0efb3d0625c022c9f259e23
Default Alt Text
ScribuntoHooks.php (631 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment