Skip to content
This repository
Browse code

BUGFIX Removed double check of find_old_page() in ModelAsController

  • Loading branch information...
commit 8b44955c6e06558e58aad2d223ffead7158a38e2 1 parent bc42080
Sean Harvey authored April 11, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  code/controllers/ModelAsController.php
4  code/controllers/ModelAsController.php
@@ -104,7 +104,7 @@ public function getNestedController() {
104 104
 			// If a root page has been renamed, redirect to the new location.
105 105
 			// See ContentController->handleRequest() for similiar logic.
106 106
 			$redirect = self::find_old_page($URLSegment);
107  
-			if($redirect = self::find_old_page($URLSegment)) {
  107
+			if($redirect) {
108 108
 				$params = $request->getVars();
109 109
 				if(isset($params['url'])) unset($params['url']);
110 110
 				$this->response = new SS_HTTPResponse();
@@ -180,4 +180,4 @@ static function find_old_page($URLSegment,$parentID = 0, $ignoreNestedURLs = fal
180 180
 		}
181 181
 	}
182 182
 	
183  
-}
  183
+}

0 notes on commit 8b44955

Please sign in to comment.
Something went wrong with that request. Please try again.