@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $this->session->set('user_role_name', 'Admin'); |
26 | 26 | $this->session->set('user_role_level', 2); |
27 | - $this->session->set('user_id',1); |
|
27 | + $this->session->set('user_id', 1); |
|
28 | 28 | $this->alertBox->setAlert('Connected as admin'); |
29 | 29 | $this->container->getResponse()->redirect('/admin/'); |
30 | 30 | } |
@@ -78,7 +78,7 @@ |
||
78 | 78 | $postId = $postModel->newPost($title, $postImage, $idCategory, $article, $idUser, $published, $onFrontpage, |
79 | 79 | $postSlug); |
80 | 80 | |
81 | - echo "<p>new post ID : " . $postId . "</p>"; |
|
81 | + echo "<p>new post ID : ".$postId."</p>"; |
|
82 | 82 | |
83 | 83 | echo "<pre>"; |
84 | 84 | var_dump($posts); |
@@ -12,11 +12,11 @@ |
||
12 | 12 | { |
13 | 13 | |
14 | 14 | if (!preg_match("/^[A-Za-z0-9_-]+$/", $table)) { |
15 | - throw new \ErrorException("Invalid table name " . $table); |
|
15 | + throw new \ErrorException("Invalid table name ".$table); |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | if (!preg_match("/^[A-Za-z0-9_-]+$/", $columnName)) { |
19 | - throw new \ErrorException("Invalid Column name " . $columnName); |
|
19 | + throw new \ErrorException("Invalid Column name ".$columnName); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | $slugTbl = $this->getTablePrefix($table); |