Show
Ignore:
Timestamp:
09/06/06 10:58:06 (5 years ago)
Author:
benoitg
Message:

* Remove most inclusions of MainUI in classes. That completely
broke authentication (circular dependencies). Fixes 245.

Unfixes 242. Exceptions should not be caught in the context

they are thrown in. Else there no point in throwing exception in the
first place.
* HyperLink?.php: Fix bug where a link with identical text as
it's link would see the text replaced by the clickthrough-tracked
equivalent.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Network.php

    r1090 r1091  
    5454require_once('classes/Cache.php'); 
    5555require_once('classes/ThemePack.php'); 
    56 require_once('classes/InterfaceElements.php'); 
    57 require_once('classes/MainUI.php'); 
     56 
    5857 
    5958/** 
     
    14911490    public function getAdminUI() 
    14921491    { 
     1492        require_once('classes/InterfaceElements.php'); 
    14931493        // Init values 
    14941494        $html = ''; 
     
    16951695        $user = User::getCurrentUser(); 
    16961696 
    1697         try { 
    16981697            if (!$this->hasAdminAccess($user)) { 
    16991698                throw new Exception(_('Access denied!')); 
    17001699            } 
    1701         } catch (Exception $e) { 
    1702             $ui = new MainUI(); 
    1703             $ui->setToolSection('ADMIN'); 
    1704             $ui->displayError($e->getMessage(), false); 
    1705             exit; 
    1706         } 
    1707  
     1700             
    17081701        // Content management 
    17091702        $name = "network_".$this->id."_content";