Skip to content

Commit 5d74e39

Browse files
committed
rename public to upload folder (original opencart naming)
1 parent 37688d0 commit 5d74e39

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ For more information see official [Tracy repository](https://github.com/nette/tr
1616
```
1717
"scripts": {
1818
"post-install-cmd": [
19-
"php -r \"copy('vendor/burdapraha/oc_tracy/vqmod/xml/tracy.xml', 'public/vqmod/xml/tracy.xml');\""
19+
"php -r \"copy('vendor/burdapraha/oc_tracy/vqmod/xml/tracy.xml', 'upload/vqmod/xml/tracy.xml');\""
2020
],
2121
"post-update-cmd": [
22-
"php -r \"copy('vendor/burdapraha/oc_tracy/vqmod/xml/tracy.xml', 'public/vqmod/xml/tracy.xml');\""
22+
"php -r \"copy('vendor/burdapraha/oc_tracy/vqmod/xml/tracy.xml', 'upload/vqmod/xml/tracy.xml');\""
2323
]
2424
}
2525
```
2626

2727
It will move vqmod xml file to correct folder.
2828

2929
4. add constant `define('DEV', true);` to your config.php, /admin/config.php
30-
5. optionally you can add row to your `.gitignore` file with path to tracy.xml (example: public/vqmod/xml/tracy.xml)
30+
5. optionally you can add row to your `.gitignore` file with path to tracy.xml (example: upload/vqmod/xml/tracy.xml)
3131
6. celebrate!

vqmod/xml/tracy.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@
104104
$trace = debug_backtrace();
105105
$filename = (isset($trace[0]['file'])) ? $trace[0]['file'] : '---';
106106
107-
$cmsPath = str_replace('public/system/', '', DIR_SYSTEM);
107+
$cmsPath = str_replace('upload/system/', '', DIR_SYSTEM);
108+
$cmsPath = str_replace('public/system/', '', $cmsPath);
108109
$pureFile = str_replace($cmsPath, '', $filename);
109110
110111

0 commit comments

Comments
 (0)