Skip to content
This repository was archived by the owner on Jan 18, 2018. It is now read-only.

Commit a006f85

Browse files
Fixed database issues
1 parent 8f40f4d commit a006f85

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ CHANGE LOG
1414
* More unit tests
1515

1616

17+
## V0.7.2 Alpha (Upcoming)
18+
19+
* Fixed database issues
20+
21+
1722
## V0.7.1 Alpha (24/05/2014)
1823

1924
* Blog comments fixes

src/Controllers/PageController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,12 @@ public function store()
125125
'title' => $this->binput->get('title'),
126126
'slug' => urlencode(strtolower(str_replace(' ', '-', $this->binput->get('title')))),
127127
'body' => $this->binput->get('body', null, true, false), // no xss protection please
128+
'css' => $this->binput->get('css', null, true, false), // no xss protection please
129+
'js' => $this->binput->get('js', null, true, false), // no xss protection please
128130
'show_title' => ($this->binput->get('show_title') == 'on'),
129131
'show_nav' => ($this->binput->get('show_nav') == 'on'),
130132
'icon' => $this->binput->get('icon'),
131-
'user_id' => $this->getUserId(),
133+
'user_id' => $this->getUserId()
132134
);
133135

134136
$val = $this->pageprovider->validate($input, array_keys($input));
@@ -187,7 +189,7 @@ public function update($slug)
187189
'js' => $this->binput->get('js', null, true, false), // no xss protection please
188190
'show_title' => ($this->binput->get('show_title') == 'on'),
189191
'show_nav' => ($this->binput->get('show_nav') == 'on'),
190-
'icon' => $this->binput->get('icon'),
192+
'icon' => $this->binput->get('icon')
191193
);
192194

193195
if (is_null($input['css']) || empty($input['css'])) {

src/Seeds/EventsTableSeeder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
namespace GrahamCampbell\BootstrapCMS\Seeds;
1818

19-
2019
use Carbon\Carbon;
2120
use Illuminate\Database\Seeder;
2221
use Illuminate\Support\Facades\DB;

0 commit comments

Comments
 (0)