@@ -262,7 +262,7 @@ |
||
262 | 262 | "$this->root/license.txt", |
263 | 263 | "$this->root/Storage.php" |
264 | 264 | ]; |
265 | - $files = []; |
|
265 | + $files = []; |
|
266 | 266 | foreach ($files_to_include as $s) { |
267 | 267 | if (is_file($s)) { |
268 | 268 | $files[] = $s; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | use |
23 | 23 | Singleton; |
24 | 24 | |
25 | - protected $data_model = [ |
|
25 | + protected $data_model = [ |
|
26 | 26 | 'id' => 'int', |
27 | 27 | 'amount' => 'float:0', |
28 | 28 | 'currency' => 'text', |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | @$_GET['asc'] |
54 | 54 | ) |
55 | 55 | ); |
56 | -$transactions_total = $Transactions->search( |
|
56 | +$transactions_total = $Transactions->search( |
|
57 | 57 | [ |
58 | 58 | 'total_count' => 1 |
59 | 59 | ] + (array)$_GET, |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | h::tr( |
80 | 80 | array_map( |
81 | 81 | function ($transaction) use ($L, $Language) { |
82 | - $created = $transaction['created'] |
|
82 | + $created = $transaction['created'] |
|
83 | 83 | ? $L->to_locale( |
84 | 84 | date($Language->{TIME - $transaction['created'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['created']) |
85 | 85 | ) |
86 | 86 | : '-'; |
87 | - $paid = $transaction['paid'] |
|
87 | + $paid = $transaction['paid'] |
|
88 | 88 | ? $L->to_locale( |
89 | 89 | date($Language->{TIME - $transaction['paid'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['paid']) |
90 | 90 | ) |
@@ -106,7 +106,7 @@ |
||
106 | 106 | ] |
107 | 107 | ); |
108 | 108 | } |
109 | - $sections = $this->db()->qfa( |
|
109 | + $sections = $this->db()->qfa( |
|
110 | 110 | [ |
111 | 111 | "SELECT |
112 | 112 | `id`, |
@@ -15,10 +15,10 @@ |
||
15 | 15 | cs\Language, |
16 | 16 | cs\Page, |
17 | 17 | cs\Route; |
18 | -$Config = Config::instance(); |
|
19 | -$Index = Index::instance(); |
|
20 | -$L = Language::instance(); |
|
21 | -$Index->buttons = false; |
|
18 | +$Config = Config::instance(); |
|
19 | +$Index = Index::instance(); |
|
20 | +$L = Language::instance(); |
|
21 | +$Index->buttons = false; |
|
22 | 22 | Page::instance()->title($L->browse_posts); |
23 | 23 | $Route = Route::instance(); |
24 | 24 | $page = isset($Route->route[1]) ? (int)$Route->route[1] : 1; |
@@ -12,9 +12,9 @@ |
||
12 | 12 | cs\Index, |
13 | 13 | cs\Language, |
14 | 14 | cs\Page; |
15 | -$Index = Index::instance(); |
|
16 | -$L = Language::instance(); |
|
17 | -$Index->buttons = false; |
|
15 | +$Index = Index::instance(); |
|
16 | +$L = Language::instance(); |
|
17 | +$Index->buttons = false; |
|
18 | 18 | Page::instance()->title($L->browse_sections); |
19 | 19 | $Index->content( |
20 | 20 | h::{'table.cs-table[list]'}( |
@@ -13,13 +13,13 @@ |
||
13 | 13 | cs\Language, |
14 | 14 | cs\Page, |
15 | 15 | cs\Route; |
16 | -$post = Posts::instance()->get(Route::instance()->route[1]); |
|
17 | -$Index = Index::instance(); |
|
18 | -$L = Language::instance(); |
|
16 | +$post = Posts::instance()->get(Route::instance()->route[1]); |
|
17 | +$Index = Index::instance(); |
|
18 | +$L = Language::instance(); |
|
19 | 19 | Page::instance()->title($L->deletion_of_post($post['title'])); |
20 | -$Index->buttons = false; |
|
21 | -$Index->cancel_button_back = true; |
|
22 | -$Index->action = 'admin/Blogs/browse_posts'; |
|
20 | +$Index->buttons = false; |
|
21 | +$Index->cancel_button_back = true; |
|
22 | +$Index->action = 'admin/Blogs/browse_posts'; |
|
23 | 23 | $Index->content( |
24 | 24 | h::{'h2.cs-text-center'}( |
25 | 25 | $L->sure_to_delete_post($post['title']) |
@@ -13,13 +13,13 @@ |
||
13 | 13 | cs\Language, |
14 | 14 | cs\Page, |
15 | 15 | cs\Route; |
16 | -$section = Sections::instance()->get(Route::instance()->route[1]); |
|
17 | -$Index = Index::instance(); |
|
18 | -$L = Language::instance(); |
|
16 | +$section = Sections::instance()->get(Route::instance()->route[1]); |
|
17 | +$Index = Index::instance(); |
|
18 | +$L = Language::instance(); |
|
19 | 19 | Page::instance()->title($L->deletion_of_posts_section($section['title'])); |
20 | -$Index->buttons = false; |
|
21 | -$Index->cancel_button_back = true; |
|
22 | -$Index->action = 'admin/Blogs/browse_sections'; |
|
20 | +$Index->buttons = false; |
|
21 | +$Index->cancel_button_back = true; |
|
22 | +$Index->action = 'admin/Blogs/browse_sections'; |
|
23 | 23 | $Index->content( |
24 | 24 | h::{'h2.cs-text-center'}( |
25 | 25 | $L->sure_to_delete_posts_section($section['title']) |
@@ -39,8 +39,7 @@ |
||
39 | 39 | 'value' => $section['title'] |
40 | 40 | ] |
41 | 41 | ). |
42 | - ($Config->core['simple_admin_mode'] ? false : |
|
43 | - h::{'label info'}('section_path'). |
|
42 | + ($Config->core['simple_admin_mode'] ? false : h::{'label info'}('section_path'). |
|
44 | 43 | h::{'input[is=cs-input-text][name=path]'}( |
45 | 44 | [ |
46 | 45 | 'value' => $section['path'] |