| @@ 115-121 (lines=7) @@ | ||
| 112 | * |
|
| 113 | * @return string |
|
| 114 | */ |
|
| 115 | public function getArticlePath() |
|
| 116 | { |
|
| 117 | $metadata = $this->getRepository()->getMetadata($this->getUrl()); |
|
| 118 | return isset($metadata['general']['articlePath']) |
|
| 119 | ? $metadata['general']['articlePath'] |
|
| 120 | : '/wiki/$1'; |
|
| 121 | } |
|
| 122 | ||
| 123 | /** |
|
| 124 | * The URL path of the directory that contains index.php, with no trailing slash. |
|
| @@ 131-137 (lines=7) @@ | ||
| 128 | * |
|
| 129 | * @return string |
|
| 130 | */ |
|
| 131 | public function getScriptPath() |
|
| 132 | { |
|
| 133 | $metadata = $this->getRepository()->getMetadata($this->getUrl()); |
|
| 134 | return isset($metadata['general']['scriptPath']) |
|
| 135 | ? $metadata['general']['scriptPath'] |
|
| 136 | : '/w'; |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * The URL path to index.php |
|
| @@ 145-151 (lines=7) @@ | ||
| 142 | * |
|
| 143 | * @return string |
|
| 144 | */ |
|
| 145 | public function getScript() |
|
| 146 | { |
|
| 147 | $metadata = $this->getRepository()->getMetadata($this->getUrl()); |
|
| 148 | return isset($metadata['general']['script']) |
|
| 149 | ? $metadata['general']['script'] |
|
| 150 | : $this->getScriptPath() . '/index.php'; |
|
| 151 | } |
|
| 152 | ||
| 153 | /** |
|
| 154 | * The full URL to api.php |
|