Skip to content

Commit abb51ea

Browse files
committed
Fix module name
1 parent e20d8a3 commit abb51ea

File tree

17 files changed

+42
-36
lines changed

17 files changed

+42
-36
lines changed

config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<module>
3-
<name>d_vuefront</name>
3+
<name>vuefront</name>
44
<displayName><![CDATA[VueFront]]></displayName>
55
<version><![CDATA[0.1.0]]></version>
66
<description><![CDATA[CMS Connect App for PrestaShop]]></description>

controllers/admin/AdminVuefrontController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ public function initContent()
2222
$id_tab = (int)Tab::getIdFromClassName('AdminModules');
2323
$id_employee = (int)$this->context->cookie->id_employee;
2424
$token = Tools::getAdminToken('AdminModules'.$id_tab.$id_employee);
25-
Tools::redirectAdmin('index.php?controller=AdminModules&configure=d_vuefront&token='.$token);
25+
Tools::redirectAdmin('index.php?controller=AdminModules&configure=vuefront&token='.$token);
2626
}
2727
}

controllers/front/graphql.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
require_once dirname(__FILE__) . '/../../system/startup.php';
1717

1818
/**
19-
* d_vuefront
20-
* d_vuefront.php
19+
* vuefront
20+
* vuefront.php
2121
*/
22-
class d_VuefrontGraphqlModuleFrontController extends ModuleFrontController
22+
class VuefrontGraphqlModuleFrontController extends ModuleFrontController
2323
{
24-
private $codename = "d_vuefront";
25-
private $route = "d_vuefront";
24+
private $codename = "vuefront";
25+
private $route = "vuefront";
2626

2727
public function initContent()
2828
{

model/blog/post.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ public function getPosts($data = array())
9292
}
9393

9494
if (!empty($data['filter_description']) && !empty($data['filter_name'])) {
95-
$sql->where("pnl.`title` = '%" . $data['filter_name'] . "%' OR pnl.content = '%" . $data['filter_description'] . "%' OR pnl.paragraph = '%" . $data['filter_description'] . "%'");
95+
$sql->where("pnl.`title` = '%" . $data['filter_name'] .
96+
"%' OR pnl.content = '%" . $data['filter_description'] .
97+
"%' OR pnl.paragraph = '%" . $data['filter_description'] . "%'");
9698
}
9799

98100
$sql->orderBy($sort . ' ' . $data['order']);

model/startup/startup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ public function getResolvers()
1919
$result = array();
2020
foreach ($mapping as $key => $value) {
2121
$that = $this;
22-
$result[$key] = function ($root, $args, $context) use ($value, $that) {
22+
$result[$key] = function ($root, $args) use ($value, $that) {
2323
try {
24-
return $that->load->resolver($value, $args);
24+
return $that->load->resolver($value, $args, $root);
2525
} catch (Exception $e) {
2626
throw new MySafeException($e->getMessage());
2727
}

model/store/product.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ public function getProductImages($product_id)
3131
{
3232
$product = new Product($product_id, true, $this->context->language->id, $this->context->shop->id);
3333

34-
$images = Db::getInstance()->ExecuteS('SELECT `id_image` FROM `' . _DB_PREFIX_ . 'image` WHERE `id_product` = ' . (int) ($product_id));
34+
$images = Db::getInstance()->ExecuteS(
35+
'SELECT `id_image` FROM `' . _DB_PREFIX_ . 'image` WHERE `id_product` = ' . (int) ($product_id)
36+
);
3537
foreach ($images as $key => $image_id) {
3638
$images[$key]['image'] = $this->context->link->getImageLink(
3739
$product->link_rewrite,
@@ -73,7 +75,8 @@ public function getProductOptions($product_id)
7375
return $attributes;
7476
}
7577

76-
//PrestaShop does not have attributes like OpenCart. PrestaShop Attributes are OpenCart Options. SO will just use options reduced.
78+
// PrestaShop does not have attributes like OpenCart.
79+
// PrestaShop Attributes are OpenCart Options. SO will just use options reduced.
7780
public function getProductAttributes($product_id)
7881
{
7982
$result = Product::getAttributesInformationsByProduct($product_id);

resolver/common/contact.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class ResolverCommonContact extends Resolver
1414
{
15-
private $codename = "d_vuefront";
15+
private $codename = "vuefront";
1616

1717
public function get()
1818
{
@@ -152,7 +152,7 @@ public function send($args)
152152
null,
153153
null,
154154
null,
155-
_PS_MODULE_DIR_.'d_vuefront/mails/'
155+
_PS_MODULE_DIR_.'vuefront/mails/'
156156
);
157157
} catch (\Exception $e) {
158158
throw new \Exception($e->getMessage());

resolver/common/country.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class ResolverCommonCountry extends Resolver
1414
{
15-
private $codename = "d_vuefront";
15+
private $codename = "vuefront";
1616

1717
public function get($args)
1818
{

resolver/common/file.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class ResolverCommonContact extends Resolver
1414
{
15-
private $codename = "d_vuefront";
15+
private $codename = "vuefront";
1616

1717
public function upload()
1818
{

resolver/common/language.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
class ResolverCommonLanguage extends Resolver
1414
{
15-
private $codename = "d_vuefront";
15+
private $codename = "vuefront";
1616

1717
public function get()
1818
{

0 commit comments

Comments
 (0)