Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1425708
Hooks.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
734 B
Referenced Files
None
Subscribers
None
Hooks.php
View Options
<?php
namespace
MediaWiki\Extension\ConfirmEdit\ReCaptchaNoCaptcha
;
use
MediaWiki\Config\Config
;
use
MediaWiki\ResourceLoader\Hook\ResourceLoaderGetConfigVarsHook
;
class
Hooks
implements
ResourceLoaderGetConfigVarsHook
{
/**
* Adds extra variables to the global config
*
* @param array &$vars Global variables object
* @param string $skin
* @param Config $config
*/
public
function
onResourceLoaderGetConfigVars
(
array
&
$vars
,
$skin
,
Config
$config
):
void
{
if
(
$config
->
get
(
'CaptchaClass'
)
===
ReCaptchaNoCaptcha
::
class
)
{
$vars
[
'wgConfirmEditConfig'
]
=
[
'reCaptchaSiteKey'
=>
$config
->
get
(
'ReCaptchaSiteKey'
),
'reCaptchaScriptURL'
=>
'https://www.recaptcha.net/recaptcha/api.js'
];
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 11:51 (19 h, 13 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
48/3b/1cf26264c0fd778d136f47463c3c
Default Alt Text
Hooks.php (734 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment