[mottle] Patch

Serge Grondin SGrondin at csbf.qc.ca
Thu Jan 22 12:18:59 PST 2004


Hi!,

Here some graphics and little patch for mottle to follow with the change
in the framework.

Thanks for all the good work.

-- 
Serge Grondin
Technicien en Informatique
Commission Scolaire des Bois-Francs
Tel. bur.:   (819) 758-6453, poste 2920
e-Mail bur.: SGrondin at csbf.qc.ca
-------------- next part --------------
Index: edit.php
===================================================================
RCS file: /repository/mottle/edit.php,v
retrieving revision 1.5
diff -u -r1.5 edit.php
--- edit.php    17 Jan 2004 22:57:45 -0000      1.5
+++ edit.php    22 Jan 2004 20:04:35 -0000
@@ -12,7 +12,7 @@
 define('MOTTLE_BASE', dirname(__FILE__));
 require_once MOTTLE_BASE . '/lib/base.php';
 require_once MOTTLE_BASE . '/lib/Driver.php';
-require_once HORDE_BASE . '/lib/Form.php';
+require_once HORDE_LIBS . 'Horde/Form.php';
 
 /* Only admin should be using this. */
 if (!Auth::isAdmin()) {
@@ -52,7 +52,7 @@
 $template->set('notify', Util::bufferOutput(array($notification, 'notify')));
 
 /* Render the form. */
-require_once HORDE_BASE . '/lib/Form/Renderer.php';
+require_once HORDE_LIBS . 'Horde/Form/Renderer.php';
 $renderer = &new Horde_Form_Renderer();
 $main = Util::bufferOutput(array($form, 'renderActive'), $renderer, $vars, 'edit.php', 'post');
 
Index: list.php
===================================================================
RCS file: /repository/mottle/list.php,v
retrieving revision 1.3
diff -u -r1.3 list.php
--- list.php    17 Jan 2004 22:57:45 -0000      1.3
+++ list.php    22 Jan 2004 20:04:35 -0000
@@ -19,6 +19,8 @@
     $notification->push(_("Mottle is not properly configured"),
                         'horde.error');
 }
+/* Page variable */
+$title = _("MOTD");
 
 /* Set up the template fields. */
 $template->set('menu', $menu->getMenu());
-------------- next part --------------
Index: registry.php.dist
===================================================================
RCS file: /repository/horde/config/registry.php.dist,v
retrieving revision 1.200
diff -u -r1.200 registry.php.dist
--- registry.php.dist   14 Jan 2004 09:21:39 -0000      1.200
+++ registry.php.dist   22 Jan 2004 20:08:07 -0000
@@ -351,7 +351,7 @@
 $this->applications['mottle'] = array(
     'fileroot' => dirname(__FILE__) . '/../mottle',
     'webroot' => $this->applications['horde']['webroot'] . '/mottle',
-    'icon' => $this->applications['horde']['webroot'] . '/graphics/alerts/mottle.gif',
+    'icon' => $this->applications['horde']['webroot'] . 'mottle/graphics/mottle.gif',
     'name' => _("MOTD"),
     'allow_guests' => true,
     'status' => 'inactive',


More information about the mottle mailing list