Assembla home | Assembla project page
 

Changeset 245

Show
Ignore:
Timestamp:
04/15/08 01:14:57 (7 months ago)
Author:
Slynderdale
Message:

Various bug fixes and enhancements. Removed the call_user_func calls in Streams.php and Base.php to directly calling the method for a faster response. Fixed Willsee in Seen and fixed the caching in PHP

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Driver/Streams.php

    r236 r245  
    315315            foreach($this->plugins as $plugin) { 
    316316                // Skip disabled plugins 
    317                 if ($plugin->enabled === false) { 
     317                if (!$plugin->enabled) { 
    318318                    continue; 
    319319                } 
     
    327327                } elseif (!empty($cmd) && method_exists($plugin, $method) && 
    328328                          !preg_match($ignore, $event->getHostmask())) { 
    329                         call_user_func(array($plugin, $method)); 
     329                    $plugin->{$method}(); 
    330330                } 
    331331            } 
  • trunk/Phergie/Plugin/Abstract/Base.php

    r232 r245  
    124124        } 
    125125 
    126         return call_user_func_array(array($this, 'onPhpError'), array($errno, $errstr, $errfile, $errline)); 
     126        return $this->onPhpError($errno, $errstr, $errfile, $errline); 
    127127    } 
    128128 
  • trunk/Phergie/Plugin/Php.php

    r244 r245  
    7575            } else { 
    7676                $this->errorStatus = false; 
    77                 $contents = null
     77                $contents = false
    7878            } 
    7979            $this->cache[$name] = $contents; 
  • trunk/Phergie/Plugin/Seen.php

    r230 r245  
    377377        // Perform the search 
    378378        $params = array( 
    379             ':nick' => $user, 
    380             ':offset' => (strtolower($target) == strtolower($user) ? 1 : 0) 
     379            ':nick' => $user 
    381380        ); 
    382381