| @@ 226-233 (lines=8) @@ | ||
| 223 | * @param string $tool The short name of the tool. |
|
| 224 | * @return bool |
|
| 225 | */ |
|
| 226 | public function tabEnabled($tool = "index") |
|
| 227 | { |
|
| 228 | $param = false; |
|
| 229 | if ($this->container->hasParameter("enable.$tool")) { |
|
| 230 | $param = boolval($this->container->getParameter("enable.$tool")); |
|
| 231 | } |
|
| 232 | return $param; |
|
| 233 | } |
|
| 234 | ||
| 235 | /** |
|
| 236 | * Get a list of the short names of all tools. |
|
| @@ 393-400 (lines=8) @@ | ||
| 390 | * Whether XTools is running in single-project mode. |
|
| 391 | * @return bool |
|
| 392 | */ |
|
| 393 | public function isSingleWiki() |
|
| 394 | { |
|
| 395 | $param = true; |
|
| 396 | if ($this->container->hasParameter("app.single_wiki")) { |
|
| 397 | $param = boolval($this->container->getParameter("app.single_wiki")); |
|
| 398 | } |
|
| 399 | return $param; |
|
| 400 | } |
|
| 401 | ||
| 402 | /** |
|
| 403 | * Get the database replication-lag threshold. |
|
| @@ 419-426 (lines=8) @@ | ||
| 416 | * Whether we should load stylesheets from external CDNs or not. |
|
| 417 | * @return bool |
|
| 418 | */ |
|
| 419 | public function loadStylesheetsFromCDN() |
|
| 420 | { |
|
| 421 | $param = false; |
|
| 422 | if ($this->container->hasParameter("app.load_stylesheets_from_cdn")) { |
|
| 423 | $param = boolval($this->container->getParameter("app.load_stylesheets_from_cdn")); |
|
| 424 | } |
|
| 425 | return $param; |
|
| 426 | } |
|
| 427 | ||
| 428 | /** |
|
| 429 | * Whether XTools is running in WMF Labs mode. |
|
| @@ 432-439 (lines=8) @@ | ||
| 429 | * Whether XTools is running in WMF Labs mode. |
|
| 430 | * @return bool |
|
| 431 | */ |
|
| 432 | public function isWMFLabs() |
|
| 433 | { |
|
| 434 | $param = false; |
|
| 435 | if ($this->container->hasParameter("app.is_labs")) { |
|
| 436 | $param = boolval($this->container->getParameter("app.is_labs")); |
|
| 437 | } |
|
| 438 | return $param; |
|
| 439 | } |
|
| 440 | ||
| 441 | /** |
|
| 442 | * The current replication lag. |
|