@@ -128,6 +128,7 @@ |
||
128 | 128 | * Get cache dir for app |
129 | 129 | * |
130 | 130 | * @param App $app |
131 | + * @param string $dirname |
|
131 | 132 | * @return string |
132 | 133 | */ |
133 | 134 | public static function getDir($dirname, $app = null) { |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | } |
19 | 19 | } |
20 | 20 | if ($data) { |
21 | - $address = $data['Name'] . ' ' . $data['Number'] . '<br />' . $data['PostCode'] . ', ' . $data['Region'] . ', ' . $data['CitiName'] . ', ' . $data['Address'];// . '<br /><small>' . $data['OutDescription'].'</small>'; |
|
21 | + $address = $data['Name'] . ' ' . $data['Number'] . '<br />' . $data['PostCode'] . ', ' . $data['Region'] . ', ' . $data['CitiName'] . ', ' . $data['Address']; // . '<br /><small>' . $data['OutDescription'].'</small>'; |
|
22 | 22 | } |
23 | 23 | } |
24 | 24 | ?> |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | function my_function(result) { |
37 | 37 | console.log(result); |
38 | 38 | // устанавливаем в скрытое поле ID терминала |
39 | - document.getElementById('<?=$id;?>').value = result.id; |
|
39 | + document.getElementById('<?=$id; ?>').value = result.id; |
|
40 | 40 | // показываем пользователю название точки и адрес доствки |
41 | 41 | document.getElementById('address').innerHTML = result['name'] + '<br />' + result['address']; |
42 | 42 | document.getElementById('addressbtn').innerHTML = 'Изменить'; |
@@ -48,7 +48,7 @@ |
||
48 | 48 | </div> |
49 | 49 | <script> |
50 | 50 | inji.onLoad(function () { |
51 | - inji.Ui.customSelect.bind($('#<?=$id;?>')); |
|
51 | + inji.Ui.customSelect.bind($('#<?=$id; ?>')); |
|
52 | 52 | }) |
53 | 53 | </script> |
54 | 54 | <?php |
@@ -35,8 +35,11 @@ |
||
35 | 35 | $contents = curl_exec($c); |
36 | 36 | curl_close($c); |
37 | 37 | |
38 | - if ($contents) return $contents; |
|
39 | - else return FALSE; |
|
38 | + if ($contents) { |
|
39 | + return $contents; |
|
40 | + } else { |
|
41 | + return FALSE; |
|
42 | + } |
|
40 | 43 | } |
41 | 44 | |
42 | 45 | static function deliveryTime($cart) { |
@@ -36,7 +36,7 @@ |
||
36 | 36 | curl_close($c); |
37 | 37 | |
38 | 38 | if ($contents) return $contents; |
39 | - else return FALSE; |
|
39 | + else return false; |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | static function deliveryTime($cart) { |