| @@ 260-267 (lines=8) @@ | ||
| 257 | return $this->LinkWithSearch($this->Link('galleryview')); |
|
| 258 | } |
|
| 259 | ||
| 260 | public function LinkPageEdit($id = null) { |
|
| 261 | if(!$id) { |
|
| 262 | $id = $this->currentPageID(); |
|
| 263 | } |
|
| 264 | return $this->LinkWithSearch( |
|
| 265 | Controller::join_links(CMSPageEditController::singleton()->Link('show'), $id) |
|
| 266 | ); |
|
| 267 | } |
|
| 268 | ||
| 269 | public function LinkPageSettings() { |
|
| 270 | if($id = $this->currentPageID()) { |
|
| @@ 269-277 (lines=9) @@ | ||
| 266 | ); |
|
| 267 | } |
|
| 268 | ||
| 269 | public function LinkPageSettings() { |
|
| 270 | if($id = $this->currentPageID()) { |
|
| 271 | return $this->LinkWithSearch( |
|
| 272 | Controller::join_links(CMSPageSettingsController::singleton()->Link('show'), $id) |
|
| 273 | ); |
|
| 274 | } else { |
|
| 275 | return null; |
|
| 276 | } |
|
| 277 | } |
|
| 278 | ||
| 279 | public function LinkPageHistory() { |
|
| 280 | if($id = $this->currentPageID()) { |
|
| @@ 279-287 (lines=9) @@ | ||
| 276 | } |
|
| 277 | } |
|
| 278 | ||
| 279 | public function LinkPageHistory() { |
|
| 280 | if($id = $this->currentPageID()) { |
|
| 281 | return $this->LinkWithSearch( |
|
| 282 | Controller::join_links(CMSPageHistoryController::singleton()->Link('show'), $id) |
|
| 283 | ); |
|
| 284 | } else { |
|
| 285 | return null; |
|
| 286 | } |
|
| 287 | } |
|
| 288 | ||
| 289 | public function LinkWithSearch($link) { |
|
| 290 | // Whitelist to avoid side effects |
|