Show
Ignore:
Timestamp:
10/27/10 20:33:06 (3 years ago)
Author:
grum
Message:

Fix bugs bug:1961, bug:1963

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • extensions/ASearchEngine/ase_pip.class.inc.php

    r7407 r7439  
    3333    $this->load_lang(); 
    3434 
    35     $this->sectionPage=new GPCPublicIntegration(self::SEARCH_SECTION); 
    36     $this->sectionPage->setCallbackPageFunction(array(&$this, 'managePage')); 
    37     $this->sectionPage->initEvents(); 
     35    if($this->config['ase_publicAccess_active']) 
     36    { 
     37      $this->sectionPage=new GPCPublicIntegration(self::SEARCH_SECTION); 
     38      $this->sectionPage->setCallbackPageFunction(array(&$this, 'managePage')); 
     39      $this->sectionPage->initEvents(); 
     40    } 
    3841  } 
    3942 
     
    6568    add_event_handler('init', array(&$this, 'applyJS')); 
    6669    add_event_handler('loc_begin_page_header', array(&$this->css2, 'applyCSS'), 9); // have to be loaded before other css file (event level from GPCCore=10) 
    67     add_event_handler('blockmanager_apply', array(&$this, 'blockmanagerApply'), 55); 
     70    add_event_handler('blockmanager_apply', array(&$this, 'blockmanagerApply'), 40); // call ASE before AMM 
    6871    add_event_handler('user_init', array(&$this, 'load_lang')); 
    6972  } 
     
    144147    { 
    145148      $block=$menu->get_block('mbMenu'); 
    146       $block->data['search']['URL']=get_root_url().'?/'.self::SEARCH_SECTION; 
     149      if(!is_null($block)) $block->data['search']['URL']=get_root_url().'?/'.self::SEARCH_SECTION; 
    147150    } 
    148151  }