Merge ParserTestStaticParserHook into ParserTestParserHook since they practically...
[mediawiki.git] / maintenance / Site.php
blob87d637b45eecfda978603fd1dd673c9eadf2249f
1 <?php
2 /**
3 * @todo document
4 * @ingroup Maintenance
5 */
6 class Site {
7 var $suffix, $lateral, $url;
9 function __construct( $s, $l, $u ) {
10 $this->suffix = $s;
11 $this->lateral = $l;
12 $this->url = $u;
15 function getURL( $lang, $urlprotocol ) {
16 $xlang = str_replace( '_', '-', $lang );
17 return "$urlprotocol//$xlang.{$this->url}/wiki/\$1";