Merge branch 'dev' into binarity.cz

This commit is contained in:
Michal Kváček
2016-10-04 11:16:59 +02:00
3 changed files with 81 additions and 80 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ class Comment extends Model
'content_id',
'content',
'email',
'name'
'name',
'approved'
];
public function author()
@@ -40,7 +40,8 @@ class CreateNewComment extends Controller
'content_id' => $article->id,
'name' => $name,
'email' => $email,
'content' => $content
'content' => $content,
'approved' => !is_null($user)
]);
// fire event about new comment
@@ -1,12 +1,9 @@
<?php namespace Modules\Blog\ArticleList\Providers;
use App\Handlers\Registrators\TemplateRegistrator;
use Illuminate\Support\ServiceProvider;
use InvalidArgumentException;
use Modules\Blog\ArticleList\Handlers\ArticleList;
class ArticleListServiceProvider extends ServiceProvider {
class ArticleListServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
@@ -55,6 +52,9 @@ class ArticleListServiceProvider extends ServiceProvider {
{
$viewPath = base_path('resources/views/modules/articlelist');
$sourcePath = __DIR__ . '/../Resources/views';
if (!is_dir($sourcePath)) {
return;
}
$this->publishes([$sourcePath => $viewPath]);
@@ -88,5 +88,4 @@ class ArticleListServiceProvider extends ServiceProvider {
{
return array ();
}
}