SplashSync / Dolibarr

Splash Php Module for Dolibarr ERP Platforms.
https://www.splashsync.com/
MIT License
17 stars 11 forks source link

fix : include with dolibarr custom or other install #3

Closed atm-florian closed 6 years ago

atm-florian commented 6 years ago

use dol_include_once and method declaration to avoid warning in php 7

atm-florian commented 6 years ago

Better view of diff without space and balnk comapre https://github.com/SplashSync/Dolibarr/pull/3/files?w=1

BadPixxel commented 6 years ago

Hi,

Did you tests the same change here : https://github.com/SplashSync/Dolibarr/blob/23da3bd7f5f2182499a88f7dbd1e90ad57da768b/splash/src/Local.php#L176

This include is done when connecting from remote.

atm-florian commented 6 years ago

To be honest, I just fix the fatal when I just install the module and go to setting page in Dolibarr. I didn't try to do a real end to end setup. We can discuss about this during Dolibarr DevCamp next week end ;-)

BadPixxel commented 6 years ago

Ok, thanks, I'll do it and valide this PR. The fatal is only on V7 right?

atm-florian commented 6 years ago

Waring in V7 only, but other fatal in 5.6 also. I think it's because I use a special installation directory with linux symbolic links into custom dolibarr directory rather than deploy module into htdocs/custom directly. Do not valid the PR now, we will check together

BadPixxel commented 6 years ago

Ok!!