Ignore:
Timestamp:
Jun 3, 2006 7:47:48 PM (18 years ago)
Author:
scdev
Message:

Q - Merged branches/2.0singleton into trunk. Completed updating classes to use singleton methods. Implemented tests. Fixed some bugs. Changed some interfaces.

File:
1 edited

Legend:

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

    r121 r136  
    118118    function Captcha()
    119119    {
    120         $this->secret_key = App::getParam('signing_key');
     120        $app =& App::getInstance();
     121   
     122        $this->secret_key = $app->getParam('signing_key');
    121123        $this->random_number = $this->_getRandomNumber();
    122124    }
     
    133135    function getAsciiNumber($num=null)
    134136    {
     137        $app =& App::getInstance();
     138   
    135139        if (!isset($num)) {
    136140            $num = $this->random_number;
     
    138142
    139143        if (preg_match('/[^\d]/', $num)) {
    140             App::logMsg(sprintf('Bad number: %s', $num), LOG_ERR, __FILE__, __LINE__);
     144            $app->logMsg(sprintf('Bad number: %s', $num), LOG_ERR, __FILE__, __LINE__);
    141145            return false;
    142146        }
Note: See TracChangeset for help on using the changeset viewer.