Need to make $driver an optional parameter.
authorMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 26 Mar 2010 21:28:22 +0000 (17:28 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Fri, 26 Mar 2010 21:29:10 +0000 (17:29 -0400)
framework/Editor/lib/Horde/Editor.php

index 7d19e6e..7b15088 100644 (file)
@@ -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)) {