Changeset 11860
- Timestamp:
- 08/30/07 12:44:09 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.core/midcom/baseclasses/components/interface.php
r11359 r11860 361 361 function initialize() 362 362 { 363 global $midcom;364 365 363 // Preparation 366 $loader =& $ midcom->get_component_loader();364 $loader =& $_MIDCOM->get_component_loader(); 367 365 $this->_component_path = MIDCOM_ROOT . $loader->path_to_snippetpath($this->_component); 368 366 $this->_manifest = $_MIDCOM->componentloader->manifests[$this->_component]; … … 371 369 foreach ($this->_autoload_libraries as $library) 372 370 { 373 if (! $ midcom->load_library($library))371 if (! $_MIDCOM->load_library($library)) 374 372 { 375 $ midcom->generate_error(MIDCOM_ERRCRIT, "Failed to load library {$library} while initializing {$this->_component}");373 $_MIDCOM->generate_error(MIDCOM_ERRCRIT, "Failed to load library {$library} while initializing {$this->_component}"); 376 374 // This will exit. 377 375 } … … 586 584 { 587 585 $data =& $this->_context_data[$contextid]; 588 $loader =& $ GLOBALS['midcom']->get_component_loader();586 $loader =& $_MIDCOM->get_component_loader(); 589 587 $class = $loader->path_to_prefix($this->_component) . '_'; 590 588 $class .= ($data['adminmode'] ? $this->_ais_class_suffix : $this->_site_class_suffix); … … 667 665 if (is_null($this->_nap_instance)) 668 666 { 669 $loader =& $ GLOBALS['midcom']->get_component_loader();667 $loader =& $_MIDCOM->get_component_loader(); 670 668 $class = $loader->path_to_prefix($this->_component) . "_{$this->_nap_class_suffix}"; 671 669 $this->_nap_instance = new $class(); trunk/midcom/midcom.core/midcom/baseclasses/components/navigation.php
r5856 r11860 101 101 $this->_component_data =& $GLOBALS['midcom_component_data'][$this->_component]; 102 102 103 $this->_i18n =& $ GLOBALS['midcom']->get_service('i18n');103 $this->_i18n =& $_MIDCOM->get_service('i18n'); 104 104 $this->_l10n =& $this->_i18n->get_l10n($this->_component); 105 105 $this->_l10n_midcom =& $this->_i18n->get_l10n('midcom'); trunk/midcom/midcom.core/midcom/baseclasses/components/purecode.php
r3766 r11860 88 88 { 89 89 $this->_component_data =& $GLOBALS['midcom_component_data'][$this->_component]; 90 $this->_i18n =& $ GLOBALS['midcom']->get_service('i18n');90 $this->_i18n =& $_MIDCOM->get_service('i18n'); 91 91 $this->_l10n =& $this->_i18n->get_l10n($this->_component); 92 92 $this->_l10n_midcom =& $this->_i18n->get_l10n('midcom');
