Fix form loading.
authorJan Schneider <jan@horde.org>
Fri, 25 Jun 2010 22:17:31 +0000 (00:17 +0200)
committerJan Schneider <jan@horde.org>
Sat, 26 Jun 2010 00:03:08 +0000 (02:03 +0200)
ingo/lib/UI/VarRenderer/ingo.php [deleted file]
ingo/lib/Ui/VarRenderer/Ingo.php [new file with mode: 0644]
ingo/spam.php

diff --git a/ingo/lib/UI/VarRenderer/ingo.php b/ingo/lib/UI/VarRenderer/ingo.php
deleted file mode 100644 (file)
index f553e61..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<?php
-/**
- * Extension of Horde's variable renderer that support Ingo's folders variable
- * type.
- *
- * Copyright 2006-2010 The Horde Project (http://www.horde.org/)
- *
- * See the enclosed file LICENSE for license information (ASL).  If you
- * did not receive this file, see http://www.horde.org/licenses/asl.php.
- *
- * @author  Jan Schneider <jan@horde.org>
- * @package Ingo
- */
-class Horde_Ui_VarRenderer_Ingo extends Horde_Ui_VarRenderer_Html
-{
-    protected function _renderVarInput_ingo_folders(&$form, &$var, &$vars)
-    {
-        return Ingo::flistSelect($var->type->getFolder(), 'horde_form', 'folder');
-    }
-}
diff --git a/ingo/lib/Ui/VarRenderer/Ingo.php b/ingo/lib/Ui/VarRenderer/Ingo.php
new file mode 100644 (file)
index 0000000..f553e61
--- /dev/null
@@ -0,0 +1,20 @@
+<?php
+/**
+ * Extension of Horde's variable renderer that support Ingo's folders variable
+ * type.
+ *
+ * Copyright 2006-2010 The Horde Project (http://www.horde.org/)
+ *
+ * See the enclosed file LICENSE for license information (ASL).  If you
+ * did not receive this file, see http://www.horde.org/licenses/asl.php.
+ *
+ * @author  Jan Schneider <jan@horde.org>
+ * @package Ingo
+ */
+class Horde_Ui_VarRenderer_Ingo extends Horde_Ui_VarRenderer_Html
+{
+    protected function _renderVarInput_ingo_folders(&$form, &$var, &$vars)
+    {
+        return Ingo::flistSelect($var->type->getFolder(), 'horde_form', 'folder');
+    }
+}
index 4b43559..3d682e9 100644 (file)
@@ -11,6 +11,9 @@
  * @author Jan Schneider <jan@horde.org>
  */
 
+require_once dirname(__FILE__) . '/lib/Application.php';
+Horde_Registry::appInit('ingo');
+
 /**
  * Dummy class to hold the select box created by {@link Ingo::flistSelect()}.
  *
@@ -38,9 +41,6 @@ class Horde_Form_Type_ingo_folders extends Horde_Form_Type {
 
 }
 
-require_once dirname(__FILE__) . '/lib/Application.php';
-Horde_Registry::appInit('ingo');
-
 if (!in_array(Ingo_Storage::ACTION_SPAM, $_SESSION['ingo']['script_categories'])) {
     $notification->push(_("Simple spam filtering is not supported in the current filtering driver."), 'horde.error');
     header('Location: ' . Horde::applicationUrl('filters.php', true));