Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

BUGFIX Removed double check of find_old_page() in ModelAsController

  • Loading branch information...
commit 8b44955c6e06558e58aad2d223ffead7158a38e2 1 parent bc42080
@halkyon halkyon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 code/controllers/ModelAsController.php
View
4 code/controllers/ModelAsController.php
@@ -104,7 +104,7 @@ public function getNestedController() {
// If a root page has been renamed, redirect to the new location.
// See ContentController->handleRequest() for similiar logic.
$redirect = self::find_old_page($URLSegment);
- if($redirect = self::find_old_page($URLSegment)) {
+ if($redirect) {
$params = $request->getVars();
if(isset($params['url'])) unset($params['url']);
$this->response = new SS_HTTPResponse();
@@ -180,4 +180,4 @@ static function find_old_page($URLSegment,$parentID = 0, $ignoreNestedURLs = fal
}
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.