12
There is another bug: icons for editing and deleting members are not displayed in the admin (members section). In the php-debug info, it is stated that $icones is not defined (admin/main.php line 777 and 778).
$icones is defined in include/common.php. This script wasn't changed since the previous version, but I think that the language definitions are loaded differently (already loaded befor loading of common.php). In the previous version common.php ended as:
// Définition des images
if( !defined("_SIMPLENEWSLETTER_EDIT")) {
simplenewsletter_utils::loadLanguageFile('main.php');
$icones = array(
'edit' => ". SIMPLENEWSLETTER_IMAGES_URL ."edit.png' alt='"._SIMPLENEWSLETTER_EDIT."' align='middle' />",
'delete' => ". SIMPLENEWSLETTER_IMAGES_URL ."delete.png' alt='"._SIMPLENEWSLETTER_DELETE."' align='middle' />",
'validate' => ". SIMPLENEWSLETTER_IMAGES_URL ."button_ok.png' alt='"._SIMPLENEWSLETTER_VALIDATE."' align='middle' />"
);
}
I changed the script to:
// Définition des images
if( !defined("_SIMPLENEWSLETTER_EDIT")) {
simplenewsletter_utils::loadLanguageFile('main.php');
}
$icones = array(
'edit' => ". SIMPLENEWSLETTER_IMAGES_URL ."edit.png' alt='"._SIMPLENEWSLETTER_EDIT."' align='middle' />",
'delete' => ". SIMPLENEWSLETTER_IMAGES_URL ."delete.png' alt='"._SIMPLENEWSLETTER_DELETE."' align='middle' />",
'validate' => ". SIMPLENEWSLETTER_IMAGES_URL ."button_ok.png' alt='"._SIMPLENEWSLETTER_VALIDATE."' align='middle' />"
);
The buttons are back !
SMEDrieben