Show
Ignore:
Timestamp:
09/06/06 10:58:06 (6 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/Server.php

    r1090 r1091  
    392392 
    393393                        if ($_serverId) { 
    394                             try { 
    395394                                if (!User::getCurrentUser()->isSuperAdmin()) { 
    396395                                        throw new Exception(_("Access denied")); 
    397396                                } 
    398                 } catch (Exception $e) { 
    399                     require_once('classes/MainUI.php'); 
    400  
    401                     $ui = new MainUI(); 
    402                     $ui->setToolSection('ADMIN'); 
    403                     $ui->displayError($e->getMessage(), false); 
    404                     exit; 
    405                 } 
     397 
    406398 
    407399                                $_retVal = self::createNewObject($_serverId);