Revert r81542 for now, too lazy to fix this properly
[lhc/web/wiklou.git] / maintenance / Site.php
1 <?php
2 /**
3 * @todo document
4 * @ingroup Maintenance
5 */
6 class Site {
7 var $suffix, $lateral, $url;
8
9 function __construct( $s, $l, $u ) {
10 $this->suffix = $s;
11 $this->lateral = $l;
12 $this->url = $u;
13 }
14
15 function getURL( $lang ) {
16 $xlang = str_replace( '_', '-', $lang );
17 return "http://$xlang.{$this->url}/wiki/\$1";
18 }
19 }