@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $query = \App::$cur->db->newQuery(); |
| 29 | 29 | $query->operation = 'select'; |
| 30 | 30 | $query->table = \Exchange1c\Exchange::table(); |
| 31 | - $query->cols = \Exchange1c\Exchange::index().','.\Exchange1c\Exchange::colPrefix() . 'path'; |
|
| 31 | + $query->cols = \Exchange1c\Exchange::index() . ',' . \Exchange1c\Exchange::colPrefix() . 'path'; |
|
| 32 | 32 | $queryArr = $query->buildQuery(); |
| 33 | 33 | $queryArr['query'] .= ' where `' . \Exchange1c\Exchange::colPrefix() . 'cleared` = 0 AND `' . \Exchange1c\Exchange::colPrefix() . 'date_create` < NOW() - INTERVAL ' . \App::$cur->exchange1c->config['maxSaveFilesInterval']; |
| 34 | 34 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | \Tools::delDir($exchangeArr[\Exchange1c\Exchange::colPrefix() . 'path']); |
| 38 | 38 | $query = \App::$cur->db->newQuery(); |
| 39 | 39 | $query->where([\Exchange1c\Exchange::index(), $exchangeArr[\Exchange1c\Exchange::index()]]); |
| 40 | - $query->update(\Exchange1c\Exchange::table(),[\Exchange1c\Exchange::colPrefix() . 'cleared' => 1]); |
|
| 40 | + $query->update(\Exchange1c\Exchange::table(), [\Exchange1c\Exchange::colPrefix() . 'cleared' => 1]); |
|
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | } |
@@ -13,11 +13,9 @@ |
||
| 13 | 13 | |
| 14 | 14 | use Exchange1c\Exchange; |
| 15 | 15 | |
| 16 | -class Init extends \Exchange1c\Mode |
|
| 17 | -{ |
|
| 16 | +class Init extends \Exchange1c\Mode { |
|
| 18 | 17 | |
| 19 | - public function process() |
|
| 20 | - { |
|
| 18 | + public function process() { |
|
| 21 | 19 | echo "zip=yes\n"; |
| 22 | 20 | echo 'file_limit=' . \Tools::toBytes(ini_get('post_max_size')); |
| 23 | 21 | $this->end(); |