Modify

Opened 10 years ago

Last modified 6 years ago

#824 new Erweiterung

auto_include

Reported by: Volker Strähle Owned by: somebody
Priority: normal Milestone: modified-shop-2.1.0.0
Component: Shop Version: 2.0.1.0
Keywords: Cc:
Blocked By: Blocking:

Description

Sollte nicht die Existenz der Verzeichnisse geprüft und ggf. erstellt werden?

  $dir = rtrim($dir,'/');
	if (!is_dir($dir)){
		trigger_error('Directory '.$dir.' does not exists');
		if(defined(AUTOCREATE_MISSING_DIR) && AUTOCREATE_MISSING_DIR == true){
			try{
				mkdir($dir);
			}catch(exception $e){
				trigger_error($e->getMessage());
			}
		}
	}

Attachments (0)

Change History (3)

comment:1 by Gerhard Waldemair, 10 years ago

Milestone: modified-shop-2.00modified-shop-2.10
Version: 2.02.10

comment:2 by Torsten Riemer, 8 years ago

Milestone: modified-shop-2.1.0.0

comment:3 by Gerhard Waldemair, 6 years ago

Milestone: modified-shop-2.1.0.0

Modify Ticket

Action
as new The owner will remain somebody.

Add Comment


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