Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#992 closed Aufgabe (fixed)

Upload Klasse anpassen

Reported by: INETvisio Owned by: somebody
Priority: niedrig Milestone: modified-shop-2.0.5.0
Component: Admin Version: 2.0.0.0

Description

Hallo,

bitte folgende Klasse anpassen:
admin/includes/classes/upload.php

  1. Bitte alle $messageStack Funktionen ins eigene Funktion auslagern. Z.B.:
    	/**
    	 * Set message into session.
    	 * @since 2.0.1
    	 * @param string $text Message text.
    	 * @param string $type (optional) Message type.
    	 */
    	private function set_message($text, $type = 'error') {
    		global $messageStack;
    		if (is_object($messageStack)) {
    			$messageStack->add_session($text, $type);
    		}
    	}
    
    Das könnte sehr Hilfreich sein, wenn man upload-Klasse ohne $messageStack benutzen möchte. (z.B. bei cao Funktionen)
  1. mime_types werden übergeben, werden aber nicht gespeichert. Bitte dafür extra Funktion erstellen (wie set_extensions) und genau so in "construct" einsetzen.

Gruß
Jürgen H.

Attachments (1)

upload.php-t992.diff (6.2 KB) - added by INETvisio 5 years ago.
Beispiel patch

Download all attachments as: .zip

Change History (9)

Changed 5 years ago by INETvisio

Beispiel patch

comment:1 Changed 5 years ago by Tomcraft

  • Milestone changed from modified-shop-2.0.1.0 to modified-shop-2.0.1.1

comment:2 Changed 5 years ago by Tomcraft

  • Milestone changed from modified-shop-2.0.2.0 to modified-shop-2.0.2.1

comment:3 Changed 5 years ago by Tomcraft

  • Milestone changed from modified-shop-2.0.2.1 to modified-shop-2.1.0.0

comment:4 Changed 5 years ago by Tomcraft

  • Milestone changed from modified-shop-2.1.0.0 to modified-shop-2.0.4.0

comment:5 Changed 4 years ago by Tomcraft

  • Milestone modified-shop-2.0.5.0 deleted

comment:6 Changed 4 years ago by GTB

  • Resolution set to fixed
  • Status changed from new to closed

In 11291:

fix #992

comment:7 Changed 4 years ago by Tomcraft

  • Milestone set to modified-shop-2.0.4.1

comment:8 Changed 4 years ago by Tomcraft

  • Milestone changed from modified-shop-2.0.4.1 to modified-shop-2.0.5.0

Add Comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.