repo.or.cz
/
mediawiki.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge ParserTestStaticParserHook into ParserTestParserHook since they practically...
[mediawiki.git]
/
maintenance
/
Site.php
blob
87d637b45eecfda978603fd1dd673c9eadf2249f
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
,
$urlprotocol
) {
16
$xlang
=
str_replace
(
'_'
,
'-'
,
$lang
);
17
return
"
$urlprotocol
//
$xlang
.{
$this
->url}/wiki/\
$1
"
;
18
}
19
}