| @@ 229-236 (lines=8) @@ | ||
| 226 | * @param string $tool The short name of the tool. |
|
| 227 | * @return bool |
|
| 228 | */ |
|
| 229 | public function tabEnabled($tool = "index") |
|
| 230 | { |
|
| 231 | $param = false; |
|
| 232 | if ($this->container->hasParameter("enable.$tool")) { |
|
| 233 | $param = boolval($this->container->getParameter("enable.$tool")); |
|
| 234 | } |
|
| 235 | return $param; |
|
| 236 | } |
|
| 237 | ||
| 238 | /** |
|
| 239 | * Get a list of the short names of all tools. |
|
| @@ 383-390 (lines=8) @@ | ||
| 380 | * Whether XTools is running in single-project mode. |
|
| 381 | * @return bool |
|
| 382 | */ |
|
| 383 | public function isSingleWiki() |
|
| 384 | { |
|
| 385 | $param = true; |
|
| 386 | if ($this->container->hasParameter('app.single_wiki')) { |
|
| 387 | $param = boolval($this->container->getParameter('app.single_wiki')); |
|
| 388 | } |
|
| 389 | return $param; |
|
| 390 | } |
|
| 391 | ||
| 392 | /** |
|
| 393 | * Get the database replication-lag threshold. |
|
| @@ 409-416 (lines=8) @@ | ||
| 406 | * Whether we should load stylesheets from external CDNs or not. |
|
| 407 | * @return bool |
|
| 408 | */ |
|
| 409 | public function loadStylesheetsFromCDN() |
|
| 410 | { |
|
| 411 | $param = false; |
|
| 412 | if ($this->container->hasParameter('app.load_stylesheets_from_cdn')) { |
|
| 413 | $param = boolval($this->container->getParameter('app.load_stylesheets_from_cdn')); |
|
| 414 | } |
|
| 415 | return $param; |
|
| 416 | } |
|
| 417 | ||
| 418 | /** |
|
| 419 | * Whether XTools is running in WMF Labs mode. |
|
| @@ 422-429 (lines=8) @@ | ||
| 419 | * Whether XTools is running in WMF Labs mode. |
|
| 420 | * @return bool |
|
| 421 | */ |
|
| 422 | public function isWMFLabs() |
|
| 423 | { |
|
| 424 | $param = false; |
|
| 425 | if ($this->container->hasParameter('app.is_labs')) { |
|
| 426 | $param = boolval($this->container->getParameter('app.is_labs')); |
|
| 427 | } |
|
| 428 | return $param; |
|
| 429 | } |
|
| 430 | ||
| 431 | /** |
|
| 432 | * The current replication lag. |
|