Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F10770548
Hooks.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
685 B
Referenced Files
None
Subscribers
None
Hooks.php
View Options
<?php
namespace
Nasqueron\SAAS\MediaWiki
;
class
Hooks
{
public
static
function
onSiteParameters
(
$conf
,
$wiki
)
{
$site
=
null
;
$lang
=
null
;
foreach
(
$conf
->
suffixes
as
$suffix
)
{
if
(
Configuration
::
isSelectedWiki
(
$wiki
,
$suffix
))
{
$site
=
$suffix
;
$lang
=
substr
(
$wiki
,
0
,
-
strlen
(
$suffix
)
);
break
;
}
}
return
[
'suffix'
=>
$site
,
'lang'
=>
$lang
,
'params'
=>
[
'lang'
=>
$lang
,
'site'
=>
$site
,
'wiki'
=>
$wiki
,
],
'tags'
=>
[],
];
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jul 28, 09:46 (4 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2838808
Default Alt Text
Hooks.php (685 B)
Attached To
Mode
rSAASMW SaaS MediaWiki
Attached
Detach File
Event Timeline
Log In to Comment