Assembla home | Assembla project page
 
Show
Ignore:
Timestamp:
08/01/08 09:58:43 (4 months ago)
Author:
Seldaek
Message:

* Plugins that can't load now return error messages to say why
fixes #35

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Plugin/Abstract/Base.php

    r249 r273  
    465465            $plugins = array_map('strtolower', $plugins); 
    466466            if (in_array(strtolower($plugin), $plugins) && class_exists('Phergie_Plugin_' . $plugin) && 
    467                 call_user_func(array('Phergie_Plugin_' . $plugin, 'checkDependencies'), $client, $plugins)) { 
     467                call_user_func(array('Phergie_Plugin_' . $plugin, 'checkDependencies'), $client, $plugins) === true) { 
    468468                return true; 
    469469            } 
     
    487487            $plugins = array_map('strtolower', $plugins); 
    488488            if (in_array(strtolower($plugin), $plugins) && class_exists('Phergie_Plugin_' . $plugin) && 
    489                 call_user_func(array('Phergie_Plugin_' . $plugin, 'checkDependencies'), $client, $plugins)) { 
     489                call_user_func(array('Phergie_Plugin_' . $plugin, 'checkDependencies'), $client, $plugins) === true) { 
    490490                return true; 
    491491            } 
     
    546546     * @return bool TRUE if dependencies are met, FALSE otherwise 
    547547     */ 
    548     public static function checkDependencies(Phergie_Driver_Abstract $client, array$plugins) 
     548    public static function checkDependencies(Phergie_Driver_Abstract $client, array $plugins) 
    549549    { 
    550550        return true;