Assembla home | Assembla project page
 

Changeset 43

Show
Ignore:
Timestamp:
02/11/08 00:38:15 (10 months ago)
Author:
tobias382
Message:

* Updated the base event handler class to include a type hint for the
parameter passed to the onQuit handler method
* Fixed a partial matching bug in the Acronym plugin
* Fixed a cache flushing bug in the Lart plugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Phergie/Event/Handler.php

    r42 r43  
    114114    * Handler for when the client session is about to be terminated. 
    115115    * 
    116     * @param string $reason Reason for termination (optional) 
     116    * @param Phergie_Event_Request $event 
    117117    */ 
    118     public function onQuit($reason = null) { } 
     118    public function onQuit(Phergie_Event_Request $event) { } 
    119119 
    120120    /** 
  • trunk/Phergie/Event/Handler/Acronym.php

    r39 r43  
    6363            } 
    6464 
    65             preg_match_all('/([A-Z]{2,}+)\\?/', $event->getArgument(1), $acronyms); 
     65            preg_match_all('/(?:^|\s+)([A-Z]{2,})\?/', $event->getArgument(1), $acronyms); 
    6666 
    6767            foreach ($acronyms[1] as $acronym) { 
  • trunk/Phergie/Event/Handler/Lart.php

    r41 r43  
    101101        $today = date('md'); 
    102102 
    103         if ($flushed != $today) { 
     103        if ($this->_flushed != $today) { 
    104104            unset($this->_cache); 
    105105            $this->_flushed = $today;