From: Michael J. Rubinsky Date: Fri, 26 Mar 2010 21:28:22 +0000 (-0400) Subject: Need to make $driver an optional parameter. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=e34862c03362942ef07eaea312714af67b8bfe73;p=horde.git Need to make $driver an optional parameter. --- diff --git a/framework/Editor/lib/Horde/Editor.php b/framework/Editor/lib/Horde/Editor.php index 7d19e6e76..7b15088e0 100644 --- a/framework/Editor/lib/Horde/Editor.php +++ b/framework/Editor/lib/Horde/Editor.php @@ -39,7 +39,7 @@ class Horde_Editor * @return Horde_Editor The newly created concrete instance. * @throws Horde_Editor_Exception. */ - static public function factory($driver, $params = null) + static public function factory($driver = null, $params = null) { $driver = ucfirst(basename($driver)); if (empty($driver) || (strcmp($driver, 'None') == 0)) {