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

Fix bugs bug:1961, bug:1963

Location:
extensions/ASearchEngine
Files:
2 edited

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  } 
  • extensions/ASearchEngine/main.inc.php

    r7407 r7439  
    22/* 
    33Plugin Name: Advanced Search Engine 
    4 Version: 1.0.0 
     4Version: 1.0.2 
    55Description: An advanced search engine 
    66Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid= 
     
    3434|         |            |   . Translation is not correct for RBuilder keys 
    3535|         |            | 
     36| 1.0.2   | 2010-10-27 | * mantis bug:1963 
     37|         |            |   . Compatibiliy with AdvancedMenuManager 
    3638|         |            | 
    37 |         |            | 
    38 |         |            | 
     39|         |            | * mantis bug:1961 
     40|         |            |   . Search Engine is accessible from gallery users even 
     41|         |            |     if not activated 
    3942|         |            | 
    4043|         |            | 
Note: See TracChangeset for help on using the changeset viewer.