Skip to content

Commit

Permalink
Avoid Horde_Text_Filter#factory() if possible
Browse files Browse the repository at this point in the history
It's still used within filter(), but not anything we can do about that
from outside the package
  • Loading branch information
slusarz committed Jan 28, 2014
1 parent 859dade commit 84f940a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/Core/lib/Horde/Core/Factory/TextFilter.php
Expand Up @@ -41,7 +41,8 @@ class Horde_Core_Factory_TextFilter extends Horde_Core_Factory_Base
public function create($driver, array $params = array())
{
list($driver, $params) = $this->_getDriver($driver, $params);
return Horde_Text_Filter::factory($driver, $params);
$driver = $this->_getDriverName($driver, 'Horde_Text_Filter');
return new $driver($params);
}

/**
Expand Down

0 comments on commit 84f940a

Please sign in to comment.