equal
deleted
inserted
replaced
74 { |
74 { |
75 grinding_halt('Version mismatch', 'Trying to run Enano version '.$version.' on database version '.enano_version().', you might need to upgrade.'); |
75 grinding_halt('Version mismatch', 'Trying to run Enano version '.$version.' on database version '.enano_version().', you might need to upgrade.'); |
76 } |
76 } |
77 |
77 |
78 // Set our CDN path |
78 // Set our CDN path |
79 define('cdnPath', getConfig('cdn_path', scriptPath)); |
79 if ( !defined('cdnPath') ) |
|
80 define('cdnPath', getConfig('cdn_path', scriptPath)); |
80 |
81 |
81 // |
82 // |
82 // Low level maintenance |
83 // Low level maintenance |
83 // |
84 // |
84 |
85 |
135 // |
136 // |
136 |
137 |
137 // Obtain list of plugins |
138 // Obtain list of plugins |
138 $plugins->loadAll(); |
139 $plugins->loadAll(); |
139 |
140 |
|
141 profiler_log('Fetched plugin list'); |
|
142 |
140 global $plugins; |
143 global $plugins; |
141 |
144 |
142 // Load plugins from common because we can't give plugins full abilities in object context |
145 // Load plugins from common because we can't give plugins full abilities in object context |
143 foreach ( $plugins->load_list as $f ) |
146 foreach ( $plugins->load_list as $f ) |
144 { |
147 { |
145 if ( file_exists($f) ) |
148 if ( file_exists(ENANO_ROOT . '/plugins/' . $f) ) |
146 include_once $f; |
149 include_once ENANO_ROOT . '/plugins/' . $f; |
147 } |
150 } |
148 |
151 |
149 profiler_log('Loaded plugins'); |
152 profiler_log('Loaded plugins'); |
150 |
153 |
151 // Three fifths of the Enano API gets the breath of life right here. |
154 // Three fifths of the Enano API gets the breath of life right here. |