Changeset 217

Show
Ignore:
Timestamp:
12/08/07 22:49:59 (1 year ago)
Author:
shupp
Message:

throw exception in ToasterAdmin?_Common::noDomainSupplied

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ToasterAdmin/Common.php

    r202 r217  
    6161     * Required by several modules 
    6262     * 
    63      * @access protected false if it was supplied, PEAR_Error if it was not 
    6463     * @return mixed 
    6564     */ 
    6665    protected function noDomainSupplied() { 
    67         if (!isset($_REQUEST['domain'])) { 
    68             return PEAR::raiseError(_('Error no domain supplied')); 
     66        if (is_null($this->domain)) { 
     67            throw new Framework_Exception (_('Error no domain supplied')); 
    6968        } 
    70         return false; 
    7169    } 
    7270