Skip to content

Commit a31d05f

Browse files
committed
fix: fix bug
1 parent 19d9401 commit a31d05f

24 files changed

+520
-160
lines changed

controllers/admin/AdminVuefrontAjaxController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function ajaxProcessVfUpdate()
238238
try {
239239
$tmpFile = tempnam(sys_get_temp_dir(), 'TMP_');
240240
rename($tmpFile, $tmpFile .= '.tar');
241-
file_put_contents($tmpFile, Tools::file_get_contents($_POST['url']));
241+
file_put_contents($tmpFile, Tools::file_get_contents(Tools::getValue('url')));
242242
$this->removeDir(_PS_ROOT_DIR_ . '/vuefront');
243243
$phar = new PharData($tmpFile);
244244
$phar->extractTo(_PS_ROOT_DIR_ . '/vuefront');
@@ -341,7 +341,7 @@ public function getallheaders()
341341
' ',
342342
'-',
343343
ucwords(
344-
Tools::strtolower(str_replace('_', ' ', substr($name, 5)))
344+
Tools::strtolower(str_replace('_', ' ', Tools::substr($name, 5)))
345345
)
346346
)
347347
] = $value;

model/common/seo.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
<?php
2+
/**
3+
* 2019 (c) VueFront
4+
*
5+
* MODULE VueFront
6+
*
7+
* @author VueFront
8+
* @copyright Copyright (c) permanent, VueFront
9+
* @license MIT
10+
* @version 0.1.0
11+
*/
212

313
class ModelCommonSeo extends Model
414
{

model/store/cart.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
<?php
2+
/**
3+
* 2019 (c) VueFront
4+
*
5+
* MODULE VueFront
6+
*
7+
* @author VueFront
8+
* @copyright Copyright (c) permanent, VueFront
9+
* @license MIT
10+
* @version 0.1.0
11+
*/
212

313
class ModelStoreCart extends Model
414
{

model/store/checkout.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
* @version 0.1.0
1212
*/
1313

14-
1514
class ModelStoreCheckout extends Model
1615
{
1716
public function getJwt($codename)

resolver/store/checkout.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?php
2-
32
/**
43
* 2019 (c) VueFront
54
*

resolver/store/option.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
<?php
2+
/**
3+
* 2019 (c) VueFront
4+
*
5+
* MODULE VueFront
6+
*
7+
* @author VueFront
8+
* @copyright Copyright (c) permanent, VueFront
9+
* @license MIT
10+
* @version 0.1.0
11+
*/
212

313
class ResolverStoreOption extends Resolver
414
{

views/css/admin/index.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?php
2+
/*
3+
* 2007-2017 PrestaShop
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Open Software License (OSL 3.0)
8+
* that is bundled with this package in the file LICENSE.txt.
9+
* It is also available through the world-wide-web at this URL:
10+
* http://opensource.org/licenses/osl-3.0.php
11+
* If you did not receive a copy of the license and are unable to
12+
* obtain it through the world-wide-web, please send an email
13+
* to license@prestashop.com so we can send you a copy immediately.
14+
*
15+
* DISCLAIMER
16+
*
17+
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
18+
* versions in the future. If you wish to customize PrestaShop for your
19+
* needs please refer to http://www.prestashop.com for more information.
20+
*
21+
* @author PrestaShop SA <contact@prestashop.com>
22+
* @copyright 2007-2016 PrestaShop SA
23+
* @version Release: $Revision$
24+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
25+
* International Registered Trademark & Property of PrestaShop SA
26+
*/
27+
28+
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
29+
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
30+
31+
header("Cache-Control: no-store, no-cache, must-revalidate");
32+
header("Cache-Control: post-check=0, pre-check=0", false);
33+
header("Pragma: no-cache");
34+
35+
header("Location: ../");
36+
exit;

views/js/d_vuefront/main.ef0ebb5731eb08a22a6e.css renamed to views/css/admin/main.70d488c9a1322ff6282c.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)