Commit: 9c98e0787ee08aa67a1c20e66a7c5aa10ceffc2d

Author: Joël Perras | Date: 2010-03-06 13:42:41 -0500
Adding '.text' alias handling for paste viewing.
diff --git a/controllers/PastesController.php b/controllers/PastesController.php index 326c038..b59ef7d 100644 --- a/controllers/PastesController.php +++ b/controllers/PastesController.php @@ -65,7 +65,7 @@ class PastesController extends \lithium\action\Controller { if ($this->request->type === 'json') { return $paste->to('json'); } - if ($this->request->type === 'txt') { + if ($this->request->type === 'txt' || $this->request->type === 'text') { return $paste->content; } return compact('paste');