| @@ 102-108 (lines=7) @@ | ||
| 99 | * |
|
| 100 | * @return string |
|
| 101 | */ |
|
| 102 | public function getArticlePath() |
|
| 103 | { |
|
| 104 | $metadata = $this->getRepository()->getMetadata($this->getUrl()); |
|
| 105 | return isset($metadata['general']['articlePath']) |
|
| 106 | ? $metadata['general']['articlePath'] |
|
| 107 | : '/wiki/'; |
|
| 108 | } |
|
| 109 | ||
| 110 | /** |
|
| 111 | * The URL path of the directory that contains index.php, with no trailing slash. |
|
| @@ 118-124 (lines=7) @@ | ||
| 115 | * |
|
| 116 | * @return string |
|
| 117 | */ |
|
| 118 | public function getScriptPath() |
|
| 119 | { |
|
| 120 | $metadata = $this->getRepository()->getMetadata($this->getUrl()); |
|
| 121 | return isset($metadata['general']['scriptPath']) |
|
| 122 | ? $metadata['general']['scriptPath'] |
|
| 123 | : '/w'; |
|
| 124 | } |
|
| 125 | ||
| 126 | /** |
|
| 127 | * Get this project's title, the human-language full title of the wiki (e.g. "English |
|