[ansel] Something productive -- a new patch

Heath S. Hendrickson heath at outerspaceconsultants.com
Fri Apr 2 09:24:12 PST 2004


Here's a patch to caption.php that redirects to the gallery view and 
puts up a feedback notification when you click to save the caption data.

h
-------------- next part --------------
Index: captions.php
===================================================================
RCS file: /usr/local/horde/cvs/ansel/captions.php,v
retrieving revision 1.8
diff -u -r1.8 captions.php
--- captions.php	17 Jan 2004 22:57:23 -0000	1.8
+++ captions.php	2 Apr 2004 16:54:21 -0000
@@ -43,7 +43,9 @@
             $image->set('description', $desc, true);
         }
     }
-    break;
+    $notification->push(_("Captions Saved."), 'horde.success');
+    header('Location: ' . Horde::applicationUrl(Util::addParameter('view.php', 'gallery', $galleryId), true));
+    exit;
 }
 
 $title = _("Caption Editor");


More information about the ansel mailing list