Assembla home | Assembla project page
 

Changeset 124

Show
Ignore:
Timestamp:
03/05/08 02:24:38 (9 months ago)
Author:
Seldaek
Message:

* Toggle: changed getInstance to getPlugin, part deux.

Files:

Legend:

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

    r123 r124  
    1313    public function onDoDisable($plugin) 
    1414    { 
    15         if ($instance = $this->getInstance($plugin) && $instance != $this) { 
     15        if ($instance = $this->getPlugin($plugin) && $instance != $this) { 
    1616                $instance->enabled = false; 
    1717                $this->doPrivmsg($this->event->getSource(), 'Disabled '.$plugin.'.'); 
     
    2323    public function onDoEnable($plugin) 
    2424    { 
    25         if ($instance = $this->getInstance($plugin)) { 
     25        if ($instance = $this->getPlugin($plugin)) { 
    2626                $instance->enabled = true; 
    2727                $this->doPrivmsg($this->event->getSource(), 'Enabled '.$plugin.'.');