Skip to content

Commit 6fce7ac

Browse files
committed
fixed sql syntax for reserved column name
1 parent 011cb34 commit 6fce7ac

File tree

6 files changed

+15
-9
lines changed

6 files changed

+15
-9
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.idea/
2-
vendor/
2+
vendor/
3+
*.zip
4+
TODO

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
![Sms77.io Logo](https://www.sms77.io/wp-content/uploads/2019/07/sms77-Logo-400x79.png "sms77")
12
# sms77.io PrestaShop module
23

34
## Installation
@@ -22,7 +23,6 @@ Available message placeholders:
2223
- {1} => Last name
2324
- {2} => Order-ID (where available)
2425

25-
#### TODO:
26-
- Add tests
27-
- Add more events
28-
- Add more placeholders to message contents
26+
#### Screenshots
27+
#### Screenshots
28+
![Screenshot of plugin settings](https://tettra-production.s3.us-west-2.amazonaws.com/0d6efb4f154041e899af17bdcd19c1b5/bcac36a50716f4f73cd84020c4bf091d/d822b155a4112474fdb7aea5ee22465e/cb30d8dd64d0e83fcc7822a40f1703d9/mLBF1Q0g4SCVCXQSEfzElQAJBvxDiaqqTTSqY2lS.png "PrestaShop.Sms77: Settings")

classes/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
require_once __DIR__ . "/../controllers/admin/Sms77AdminController.php";
17-
require_once __DIR__ . "./Constants.php";
17+
require_once __DIR__ . "/Constants.php";
1818

1919
class Form extends HelperForm
2020
{

classes/TableWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static function create() {
4646
' . self::TIMESTAMP . ' DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
4747
' . self::RESPONSE . ' TEXT NOT NULL,
4848
' . self::TYPE . ' VARCHAR(12) NOT NULL,
49-
' . self::GROUPS . ' VARCHAR(255),
49+
`' . self::GROUPS . '` VARCHAR(255),
5050
' . self::COUNTRIES . ' VARCHAR(255),
5151
PRIMARY KEY (id_sms77_message)
5252
) ENGINE=' . _MYSQL_ENGINE_ . ' DEFAULT CHARSET=utf8;

classes/Util.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515

1616
use Sms77\Api\Client;
1717

18-
require_once(__DIR__ . '/TableWrapper.php');
19-
require_once(__DIR__ . '/Constants.php');
18+
require_once __DIR__ . '/TableWrapper.php';
19+
require_once __DIR__ . '/Constants.php';
2020

2121
class Util
2222
{

sms77.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
exit;
1818
}
1919

20+
if (file_exists(__DIR__ . '/vendor/autoload.php')) {
21+
require_once __DIR__ . '/vendor/autoload.php';
22+
}
23+
2024
require_once dirname(__FILE__) . "/classes/Constants.php";
2125
require_once dirname(__FILE__) . "/classes/Form.php";
2226
require_once dirname(__FILE__) . "/classes/Personalizer.php";

0 commit comments

Comments
 (0)