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

    r1089 r1091  
    4747 */ 
    4848require_once('include/common.php'); 
    49 require_once('classes/MainUI.php'); 
    5049 
    5150/** 
     
    393392        $user = User::getCurrentUser(); 
    394393 
    395         try { 
    396394            if (!isset($user)) { 
    397395                throw new Exception(_('Access denied!')); 
     
    428426 
    429427            $html .= "</select>\n"; 
    430         } catch (Exception $e) { 
    431             $ui = new MainUI(); 
    432             $ui->setToolSection('ADMIN'); 
    433             $ui->displayError($e->getMessage(), false); 
    434             exit; 
    435         } 
     428 
    436429 
    437430        return $html;