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/Content.php

    r1090 r1091  
    5151require_once ('classes/Cache.php'); 
    5252require_once ('classes/HyperLink.php'); 
    53 require_once ('classes/MainUI.php'); 
    5453 
    5554/** 
     
    724723        } 
    725724 
    726         try { 
    727725            if (!User :: getCurrentUser()) { 
    728726                throw new Exception(_('Access denied!')); 
    729727            } 
    730         } catch (Exception $e) { 
    731             $ui = new MainUI(); 
    732             $ui->setToolSection('ADMIN'); 
    733             $ui->displayError($e->getMessage(), false); 
    734             exit; 
    735         } 
    736728 
    737729        if ($type_interface != "table") {