givanz / Vvveb

Powerful and easy to use cms to build websites, blogs or ecommerce stores.
https://www.vvveb.com
GNU Affero General Public License v3.0
384 stars 82 forks source link

startup.php failed to generate SQL.php class file when plugin name contain components #166

Open Shofiul-Alam opened 4 months ago

Shofiul-Alam commented 4 months ago

Hi startup.php failed to generate SQL.php class file when plugin name contain components

I changed the the line number 153 as follows in startup.php

$pluginName = str_replace([DS . 'plugins' . DS, DS.$file], '', $sqlFile).DS;

image

givanz commented 4 months ago

Hi

Can you please provide more details on how I can reproduce this bug, what sql file I should create to generate the error.

I added your change with adding DS to plugin name in the latest.zip release and I will commit the fix after I make more tests.