| @@ 142-148 (lines=7) @@ | ||
| 139 | * |
|
| 140 | * @return string |
|
| 141 | */ |
|
| 142 | public function getArticlePath() |
|
| 143 | { |
|
| 144 | $metadata = $this->getMetadata(); |
|
| 145 | return isset($metadata['general']['articlePath']) |
|
| 146 | ? $metadata['general']['articlePath'] |
|
| 147 | : '/wiki/$1'; |
|
| 148 | } |
|
| 149 | ||
| 150 | /** |
|
| 151 | * The URL path of the directory that contains index.php, with no trailing slash. |
|
| @@ 158-164 (lines=7) @@ | ||
| 155 | * |
|
| 156 | * @return string |
|
| 157 | */ |
|
| 158 | public function getScriptPath() |
|
| 159 | { |
|
| 160 | $metadata = $this->getMetadata(); |
|
| 161 | return isset($metadata['general']['scriptPath']) |
|
| 162 | ? $metadata['general']['scriptPath'] |
|
| 163 | : '/w'; |
|
| 164 | } |
|
| 165 | ||
| 166 | /** |
|
| 167 | * The URL path to index.php |
|
| @@ 215-221 (lines=7) @@ | ||
| 212 | * Get the title of the Main Page. |
|
| 213 | * @return string |
|
| 214 | */ |
|
| 215 | public function getMainPage() |
|
| 216 | { |
|
| 217 | $metadata = $this->getMetadata(); |
|
| 218 | return isset($metadata['general']['mainpage']) |
|
| 219 | ? $metadata['general']['mainpage'] |
|
| 220 | : ''; |
|
| 221 | } |
|
| 222 | ||
| 223 | /** |
|
| 224 | * Get a list of users who are in one of the given user groups. |
|