Explorar o código

Stopped using a custom layout for feed

Michael Francis %!s(int64=14) %!d(string=hai) anos
pai
achega
23ff8bcdaa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      controllers/UsersController.php

+ 1 - 1
controllers/UsersController.php

@@ -216,7 +216,7 @@ class UsersController extends \lithium\action\Controller {
 			$feed = array_reverse($feed);
 
 			//This renders a custom layout we use for the feed, then passes user and feed to the view for the variables. 
-			$this->render(array('layout' => 'untitled', 'data' => compact('user', 'feed')));
+			return compact('user', 'feed');
 		}
 		
 	}