Commit: 336d44fc37b5423e546bd7f155beffdaf13d06bb
Author: alkemann | Date: 2009-11-19 01:19:49 +0100
diff --git a/controllers/PastesController.php b/controllers/PastesController.php
index 1fdf9cf..3c3de7a 100644
--- a/controllers/PastesController.php
+++ b/controllers/PastesController.php
@@ -61,6 +61,7 @@ class PastesController extends \lithium\action\Controller {
public function add($author = null, $language = null) {
if (empty($this->request->data)) {
$paste = Paste::create(compact('author', 'language'));
+ $paste->language = 'php';
} else {
$paste = Paste::create($this->request->data);
if ($paste->validates() && $paste->save()) {