Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4118894
ServiceWiring.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
592 B
Referenced Files
None
Subscribers
None
ServiceWiring.php
View Options
<?php
use
MediaWiki\MediaWikiServices
;
/*
* CheckUser provides a service for this, but
* we define our own nullable here to make CheckUser a soft dependency
*/
return
[
'NukeIPLookup'
=>
static
function
(
MediaWikiServices
$services
)
{
// Allow IP lookups if temp user is known and CheckUser is present
if
(
!
ExtensionRegistry
::
getInstance
()->
isLoaded
(
'CheckUser'
)
)
{
return
null
;
}
$tempUserIsKnown
=
$services
->
getTempUserConfig
()->
isKnown
();
if
(
!
$tempUserIsKnown
)
{
return
null
;
}
return
$services
->
get
(
'CheckUserTemporaryAccountsByIPLookup'
);
}
];
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Aug 19, 03:02 (2 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
89/e5/c8e08ed69dd6b0bc4e968406dce0
Default Alt Text
ServiceWiring.php (592 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment