@@ -113,7 +113,7 @@ |
||
| 113 | 113 | if (!$items) { |
| 114 | 114 | return; |
| 115 | 115 | } |
| 116 | -$items_total = $Items->search( |
|
| 116 | +$items_total = $Items->search( |
|
| 117 | 117 | [ |
| 118 | 118 | 'listed' => 1, |
| 119 | 119 | 'category' => $current_category, |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | ':', |
| 24 | 24 | array_slice(Route::instance()->path, -1)[0] |
| 25 | 25 | ); |
| 26 | -$item = $Items->get_for_user(array_pop($item)); |
|
| 26 | +$item = $Items->get_for_user(array_pop($item)); |
|
| 27 | 27 | $Page->title($item['title']); |
| 28 | 28 | $Page->Description = description($item['description']); |
| 29 | 29 | $Page->canonical_url( |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | use |
| 21 | 21 | CRUD, |
| 22 | 22 | Singleton; |
| 23 | - protected $data_model = [ |
|
| 23 | + protected $data_model = [ |
|
| 24 | 24 | 'id' => 'int', |
| 25 | 25 | 'title' => 'ml:text', |
| 26 | 26 | 'path' => 'ml:text', |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | use |
| 22 | 22 | CRUD, |
| 23 | 23 | Singleton; |
| 24 | - protected $data_model = [ |
|
| 24 | + protected $data_model = [ |
|
| 25 | 25 | 'id' => 'int', |
| 26 | 26 | 'category' => 'int', |
| 27 | 27 | 'title' => 'ml:text', |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | $Categories->get($parent) |
| 165 | 165 | ); |
| 166 | 166 | } |
| 167 | - $pages = $this->db()->qfas( |
|
| 167 | + $pages = $this->db()->qfas( |
|
| 168 | 168 | [ |
| 169 | 169 | "SELECT `id` |
| 170 | 170 | FROM `[prefix]static_pages` |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $structure['pages'][$this->get($id)['path']] = $id; |
| 178 | 178 | } |
| 179 | 179 | unset($pages); |
| 180 | - $categories = $this->db()->qfa( |
|
| 180 | + $categories = $this->db()->qfa( |
|
| 181 | 181 | [ |
| 182 | 182 | "SELECT |
| 183 | 183 | `id`, |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | 'value', |
| 112 | 112 | 'id' |
| 113 | 113 | ); |
| 114 | - $data['users'] = array_column( |
|
| 114 | + $data['users'] = array_column( |
|
| 115 | 115 | $User->db()->qfa( |
| 116 | 116 | [ |
| 117 | 117 | "SELECT |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | // Disable all versions except RFC6455, which is supported by all modern browsers |
| 141 | 141 | $ws_server->disableVersion(0); |
| 142 | 142 | $ws_server->disableVersion(6); |
| 143 | - $this->io_server = IoServer::factory( |
|
| 143 | + $this->io_server = IoServer::factory( |
|
| 144 | 144 | new HttpServer($ws_server), |
| 145 | 145 | $this->listen_port, |
| 146 | 146 | $this->listen_locally |
@@ -5,5 +5,5 @@ |
||
| 5 | 5 | * @copyright Copyright (c) 2011-2015, Nazar Mokrynskyi |
| 6 | 6 | * @license MIT License, see license.txt |
| 7 | 7 | */ |
| 8 | -define('DEBUG', false); |
|
| 9 | -define('XHTML_TAGS_STYLE', false); |
|
| 8 | +define('DEBUG', false); |
|
| 9 | +define('XHTML_TAGS_STYLE', false); |
|
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | 'title' => 'html', |
| 38 | 38 | 'description' => 'html' |
| 39 | 39 | ]; |
| 40 | - protected $table = '[prefix]groups'; |
|
| 40 | + protected $table = '[prefix]groups'; |
|
| 41 | 41 | /** |
| 42 | 42 | * @var Prefix |
| 43 | 43 | */ |
@@ -74,7 +74,7 @@ |
||
| 74 | 74 | 'ip' => 'text', |
| 75 | 75 | 'data' => 'json' |
| 76 | 76 | ]; |
| 77 | - protected $table = '[prefix]sessions'; |
|
| 77 | + protected $table = '[prefix]sessions'; |
|
| 78 | 78 | protected function construct () { |
| 79 | 79 | $this->cache = new Prefix('sessions'); |
| 80 | 80 | $this->users_cache = new Prefix('users'); |