Ignore:
Timestamp:
Jun 5, 2006 2:34:47 AM (18 years ago)
Author:
scdev
Message:

Q - while we're changing interfaces I'm going to change ->clearAuth() to ->clear().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Version.inc.php

    r146 r149  
    6161        $app =& App::getInstance();
    6262
    63         if (!method_exists($auth_object, 'getVal') || !method_exists($auth_object, 'getUsername')) {
     63        if (!method_exists($auth_object, 'get') || !method_exists($auth_object, 'getUsername')) {
    6464            trigger_error('Constructor not provided a valid Auth_* object.', E_USER_ERROR);
    6565        }
     
    202202                '" . $db->escapeString($title) . "',
    203203                '" . $db->escapeString($notes) . "',
    204                 '" . $db->escapeString($this->_auth->getVal('user_id')) . "',
     204                '" . $db->escapeString($this->_auth->get('user_id')) . "',
    205205                NOW()
    206206            )
     
    363363        while ($row = mysql_fetch_assoc($qid)) {
    364364            // Get admin usernames.
    365             $row['editor'] = $this->_auth->getVal('auth_type') . ' ' . $this->_auth->getUsername($row['saved_by_user_id']);
     365            $row['editor'] = $this->_auth->get('auth_type') . ' ' . $this->_auth->getUsername($row['saved_by_user_id']);
    366366            $versions[] = $row;
    367367        }
Note: See TracChangeset for help on using the changeset viewer.