Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2389 closed Bug/Fehler (fixed)

Fehler in /admin/includes/manufacturers_image.php

Reported by: noRiddle Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.8.0
Component: Admin Version: 2.0.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

Da ist wohl durch copy & paste ein Fehlerchen passiert:

defined( '_VALID_XTC' ) or die( 'Direct Access to this location is not allowed.' );

if (!isset($banners_image_name_process)) {
  $manufacturers_image_name_process = $manufacturers_image_name;
}

if (is_file(DIR_FS_CATALOG_IMAGES.'banner/'.$manufacturers_image_name_process)) {
  unlink(DIR_FS_CATALOG_IMAGES.'banner/'.$manufacturers_image_name_process);
}

Es geht um "banner" im Pfad bzw. "banners" in der Variablen.

Ich denke das sollte wohl so aussehen:

if (!isset($manufacturers_image_name_process)) {
  $manufacturers_image_name_process = $manufacturers_image_name;
}

if (is_file(DIR_FS_CATALOG_IMAGES.'manufacturers/'.$manufacturers_image_name_process)) {
  unlink(DIR_FS_CATALOG_IMAGES.'manufacturers/'.$manufacturers_image_name_process);
}

Gruß,
noRiddle

Attachments (0)

Change History (2)

comment:1 by Gerhard Waldemair, 3 years ago

Resolution: fixed
Status: newclosed

In 14793:

fix #2389 - change image path to manufacturers

comment:2 by Gerhard Waldemair, 3 years ago

In 14795:

revised r14793 (fix #2389 - change image path to manufacturers)

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.