diff --git a/dev/skeletons/modMyModule.class.php b/dev/skeletons/modMyModule.class.php index 07bed0c044e..900a8daee55 100644 --- a/dev/skeletons/modMyModule.class.php +++ b/dev/skeletons/modMyModule.class.php @@ -63,14 +63,15 @@ class modMyModule extends DolibarrModules $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); // Where to store the module in setup page (0=common,1=interface,2=others,3=very specific) $this->special = 0; - // Name of png file (without png) used for this module. - // Png file must be in theme/yourtheme/img directory under name object_pictovalue.png. + // Name of image file used for this module. + // If file is in theme/yourtheme/img directory under name object_pictovalue.png, use this->picto='pictovalue' + // If file is in module/images directory, use this->picto=DOL_URL_ROOT.'/module/images/file.png' $this->picto='generic'; // Data directories to create when module is enabled. $this->dirs = array(); $r=0; - + //$this->dirs[$r][0] = "mymodule"; //$this->dirs[$r][1] = "/mymodule"; //$r++; diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index bd26c463a7f..23a741e05f0 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -257,7 +257,7 @@ foreach ($conf->dol_document_root as $dirroot) } else { - dol_syslog("htdocs/admin/modules.php: Failed to open directory ".$dir.". See permission and open_basedir option.", LOG_WARNING); + dol_syslog("htdocs/admin/modules.php: Failed to open directory ".$dir.". See permission and open_basedir option.", LOG_WARNING); } } diff --git a/htdocs/includes/modules/modPaybox.class.php b/htdocs/includes/modules/modPaybox.class.php index e8e68b65eb8..d6ad0272f9b 100644 --- a/htdocs/includes/modules/modPaybox.class.php +++ b/htdocs/includes/modules/modPaybox.class.php @@ -63,9 +63,10 @@ class modPayBox extends DolibarrModules $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); // Where to store the module in setup page (0=common,1=interface,2=other) $this->special = 1; - // Name of png file (without png) used for this module. - // Png file must be in theme/yourtheme/img directory under name object_pictovalue.png. - $this->picto=DOL_URL_ROOT.'/theme/common/paybox.png'; + // Name of image file used for this module. + // If file is in theme/yourtheme/img directory under name object_pictovalue.png, use this->picto='pictovalue' + // If file is in module/images directory, use this->picto=DOL_URL_ROOT.'/module/images/file.png' + $this->picto=DOL_URL_ROOT.'/paybox/images/paybox.png'; // Data directories to create when module is enabled. $this->dirs = array(); diff --git a/htdocs/theme/common/paybox.png b/htdocs/paybox/images/paybox.png similarity index 100% rename from htdocs/theme/common/paybox.png rename to htdocs/paybox/images/paybox.png