Changeset 524 for trunk/Modules/File
- Timestamp:
- Apr 20, 2013, 8:51:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/File/File.php
r514 r524 7 7 var $FilesDir; 8 8 9 function __construct($ Database)9 function __construct($System) 10 10 { 11 $this->Database = $Database;11 parent::__construct($System); 12 12 $this->FilesDir = ''; 13 13 } … … 118 118 parent::Start(); 119 119 $this->System->RegisterPage('file', 'PageFile'); 120 $File = new File($this->System->Database); 121 $File->FilesDir = dirname(__FILE__).'/../../'.$Config['Web']['UploadFileFolder']; 122 $this->System->AddModule($File); 120 $this->System->AddModule(new File($this->System)); 121 $this->System->Modules['File']->FilesDir = dirname(__FILE__).'/../../'.$Config['Web']['UploadFileFolder']; 123 122 } 124 123
Note:
See TracChangeset
for help on using the changeset viewer.