Changeset 880 for trunk/Packages/Common
- Timestamp:
- Sep 4, 2020, 9:30:13 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/AppModule.php
r874 r880 363 363 'Version' => $Module->Version, 'Installed' => $Module->Installed); 364 364 } 365 file_put_contents($this->FileName, "<?php \n\n\$ConfigModules = ".var_export($Data, true).";\n"); 365 if (file_put_contents($this->FileName, "<?php \n\n\$ConfigModules = ".var_export($Data, true).";\n") === FALSE) 366 { 367 echo($this->FileName.' is not writeable.'); 368 } 366 369 } 367 370 … … 394 397 function LoadModules() 395 398 { 396 if ( method_exists($this->OnLoadModules[0], $this->OnLoadModules[1]))399 if (is_array($this->OnLoadModules) and (count($this->OnLoadModules) == 2) and method_exists($this->OnLoadModules[0], $this->OnLoadModules[1])) 397 400 $this->OnLoadModules(); 398 401 else $this->LoadModulesFromDir($this->ModulesDir);
Note:
See TracChangeset
for help on using the changeset viewer.