@@ -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', |
@@ -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', |
@@ -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', |
@@ -27,7 +27,7 @@ |
||
27 | 27 | 'option' => 'int', |
28 | 28 | 'user' => 'int' |
29 | 29 | ]; |
30 | - protected $table = '[prefix]polls_options_answers'; |
|
30 | + protected $table = '[prefix]polls_options_answers'; |
|
31 | 31 | |
32 | 32 | protected function cdb () { |
33 | 33 | return Config::instance()->module('Polls')->db('polls'); |
@@ -87,7 +87,7 @@ |
||
87 | 87 | ob_wrapper('phpinfo'), |
88 | 88 | $version |
89 | 89 | ); |
90 | - $return = "Apache $version[1]"; |
|
90 | + $return = "apache $version[1]"; |
|
91 | 91 | if (stripos($phpinfo, 'mod_php') !== false) { |
92 | 92 | $return .= ' + mod_php + PHP '.PHP_VERSION; |
93 | 93 | } |
@@ -25,8 +25,7 @@ |
||
25 | 25 | ). |
26 | 26 | h::label($L->gallery_title). |
27 | 27 | h::{'input[is=cs-input-text][name=add[title]]'}(). |
28 | - ($Config->core['simple_admin_mode'] ? '' : |
|
29 | - h::label(h::info('photo_gallery_gallery_path')). |
|
28 | + ($Config->core['simple_admin_mode'] ? '' : h::label(h::info('photo_gallery_gallery_path')). |
|
30 | 29 | h::{'input[is=cs-input-text][name=add[path]]'}() |
31 | 30 | ). |
32 | 31 | h::label($L->gallery_description). |
@@ -25,8 +25,7 @@ |
||
25 | 25 | ). |
26 | 26 | h::label($L->gallery_title). |
27 | 27 | h::{'input[is=cs-input-text][name=add[title]]'}(). |
28 | - ($Config->core['simple_admin_mode'] ? '' : |
|
29 | - h::label(h::info('photo_gallery_gallery_path')). |
|
28 | + ($Config->core['simple_admin_mode'] ? '' : h::label(h::info('photo_gallery_gallery_path')). |
|
30 | 29 | h::{'input[is=cs-input-text][name=add[path]]'}() |
31 | 30 | ). |
32 | 31 | h::label($L->gallery_description). |
@@ -76,12 +76,12 @@ discard block |
||
76 | 76 | h::tr( |
77 | 77 | array_map( |
78 | 78 | function ($transaction) use ($L) { |
79 | - $created = $transaction['created'] |
|
79 | + $created = $transaction['created'] |
|
80 | 80 | ? $L->to_locale( |
81 | 81 | date($L->{TIME - $transaction['created'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['created']) |
82 | 82 | ) |
83 | 83 | : '-'; |
84 | - $paid = $transaction['paid'] |
|
84 | + $paid = $transaction['paid'] |
|
85 | 85 | ? $L->to_locale( |
86 | 86 | date($L->{TIME - $transaction['paid'] < 24 * 3600 ? '_time' : '_datetime_long'}, $transaction['paid']) |
87 | 87 | ) |
@@ -93,8 +93,7 @@ discard block |
||
93 | 93 | : '-'; |
94 | 94 | $username = User::instance()->username($transaction['user']); |
95 | 95 | $class = |
96 | - $transaction['confirmed'] ? 'cs-block-success.cs-text-success' : |
|
97 | - ($transaction['paid'] ? 'cs-block-warning.cs-text-warning' : 'cs-block-error.cs-text-error'); |
|
96 | + $transaction['confirmed'] ? 'cs-block-success.cs-text-success' : ($transaction['paid'] ? 'cs-block-warning.cs-text-warning' : 'cs-block-error.cs-text-error'); |
|
98 | 97 | $tag = "td.$class"; |
99 | 98 | return [ |
100 | 99 | [ |
@@ -24,7 +24,8 @@ |
||
24 | 24 | $parent != $category['id'] // infinite loop protection |
25 | 25 | ) { |
26 | 26 | $parent = $Categories->get($category['parent']); |
27 | - if ($parent['parent'] == $category['id']) { // infinite loop protection |
|
27 | + if ($parent['parent'] == $category['id']) { |
|
28 | +// infinite loop protection |
|
28 | 29 | break; |
29 | 30 | } |
30 | 31 | $category['title'] = "$parent[title] :: $category[title]"; |