Ignore:
Timestamp:
Aug 18, 2009, 4:52:43 PM (15 years ago)
Author:
Criss
Message:

Add configuration option to define menu link or not

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/ContactForm/classes/cf_plugin.class.php

    r3748 r3749  
    5555 
    5656  function blockmanager_apply($aMenuRefArray) {
    57     if (!$this->check_allowed()) {
     57    if (!$this->check_menu_adding()) {
    5858      return;
    5959    }
     
    426426    return $infos;
    427427  }
    428 
     428  protected function check_menu_adding() {
     429    return ($this->config->get_value(CF_CFG_MENU_LINK) and
     430            $this->check_allowed());
     431  }
    429432  protected function check_allowed() {
    430433    if (is_a_guest() and !$this->config->get_value(CF_CFG_ALLOW_GUEST)) {
Note: See TracChangeset for help on using the changeset viewer.