Anonymous | Login | Signup for a new account | 2023-12-10 08:26 CST | ![]() |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Dependency Graph | [ View Issue ] [ Relation Graph ] [ Vertical ] | |||
|
||||
|
Viewing Issue Simple Details | |||||
ID | Category | Type | Reproducibility | Date Submitted | Last Update |
0001441 | [In-Portal CMS] Optimization | bug report | always | 2012-11-11 23:42 | 2012-12-04 03:53 |
Reporter | Dmitry | View Status | public | ||
Assigned To | alex | ||||
Priority | normal | Resolution | fixed | ||
Status | resolved | ||||
Summary | 0001441: Separate Module Installation with Class Constants in Unit Config | ||||
Description |
When doing separate module installation, then it's "constants.php" file isn't included during Application initialization because module isn't installed yet. This creates Fatal Error in case if classes defined in "constants.php" are used inside unit configs of this not yet installed module. As a solution I'm proposing to add these lines: $constants_file = FULL_PATH . '/' . $module_folder . '/constants.php'; if ( file_exists($constants_file) ) { require_once $constants_file; } after these lines: include_once(FULL_PATH . '/core/kernel/startup.php'); require_once FULL_PATH . '/core/install/install_toolkit.php'; in each module's install.php file. |
||||
Additional Information |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic![]() In-Portal Open Source CMS |