Hello nicolas,
plugin photoWidget writes a photoWidget.dat file (why not a line in piwigo_config table? that seems much simpler) and it may write it in unexpected places, because $conf['data_location'] is relative to the root path. With this change, it makes sure the photoWidget.dat is written at the right place:
$ svn diff include/photoWidgetConfig.class.php
Index: include/photoWidgetConfig.class.php
===================================================================
--- include/photoWidgetConfig.class.php (revision 1820)
+++ include/photoWidgetConfig.class.php (working copy)
@@ -52,7 +58,7 @@
}
private function get_config_file_dir() {
- return $GLOBALS['conf']['data_location'].'/plugins/';
+ return PHPWG_ROOT_PATH.$GLOBALS['conf']['data_location'].'/plugins/';
}
private function get_config_filename() {I have just prefixed the path with PHPWG_ROOT_PATH
Offline
Actually, pwgCumulus already have this change :-)
Offline
plg wrote:
Hello nicolas,
plugin photoWidget writes a photoWidget.dat file (why not a line in piwigo_config table? that seems much simpler) and it may write it in unexpected places, because $conf['data_location'] is relative to the root path. With this change, it makes sure the photoWidget.dat is written at the right place:
I don't know but I will make the changes to saves configuration in database. Thanks for that good idea.
Offline