Page MenuHomeDevCentral

Hooks.php
No OneTemporary

Hooks.php

<?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

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)

Event Timeline