[ansel] Ansel Watermark patch
Heath S. Hendrickson
heath at outerspaceconsultants.com
Fri Jan 9 13:58:45 PST 2004
Here's a simple patch to change the watermark from "Watermarked by AUTH"
to something more appropriate "(c) YEAR AUTH".
I'd like it to be the users full name and not the login name, but I
didn't have a chance to dig around to find out if that's something I can
access or not.
It would be nicest of all to have the watermark configurable via an
option, but that's way beyond my PHP skills at this point (consider it a
feature request).
heath
-------- patch to Image.php --------
[root at space lib]# cvs diff Image.php
Index: Image.php
===================================================================
RCS file: /usr/local/horde/cvs/ansel/lib/Image.php,v
retrieving revision 1.18
diff -r1.18 Image.php
215c215,217
< return $this->_image->watermark(sprintf(_("Watermarked by
%s"), Auth::getAuth()));
---
> $today = getdate();
> $year = $today['year'];
> return $this->_image->watermark(sprintf(_("(c)%s %s"),$year,
Auth::getAuth()));
--------- end patch --------------
More information about the ansel
mailing list