diff --git a/www/data/blog/Rapscript/logo.png b/www/data/blog/Rapscript/logo.png new file mode 100644 index 0000000..23fa84f Binary files /dev/null and b/www/data/blog/Rapscript/logo.png differ diff --git a/www/data/blog/Rapscript/preview.png b/www/data/blog/Rapscript/preview.png new file mode 100644 index 0000000..7acc749 Binary files /dev/null and b/www/data/blog/Rapscript/preview.png differ diff --git a/www/protected/controllers/BlogpostController.php b/www/protected/controllers/BlogpostController.php index dde7ea1..466b281 100644 --- a/www/protected/controllers/BlogpostController.php +++ b/www/protected/controllers/BlogpostController.php @@ -167,7 +167,7 @@ class BlogPostController extends MSController ); } - public function actionAjaxMarkdownPreview() + public function actionAjaxMarkdownPreview() //TODO-MS: BUG !! Can't preview/create blogposts that contain links (only on server ??) { if(Yii::app()->request->isAjaxRequest) { diff --git a/www/protected/models/BlogPost.php b/www/protected/models/BlogPost.php index e96a68a..69ee8b9 100644 --- a/www/protected/models/BlogPost.php +++ b/www/protected/models/BlogPost.php @@ -30,7 +30,7 @@ class BlogPost extends CActiveRecord // NOTE: you should only define rules for those attributes that // will receive user inputs. return array( - array('Date, Title, Content, ControllerID, Visible, Enabled', 'required'), + array('Date, Title, Content, Visible, Enabled', 'required'), array('Visible, Enabled', 'numerical', 'integerOnly'=>true), array('ID, Date, Title, Content, ControllerID, Visible, Enabled', 'safe', 'on'=>'search'),