[dokuwiki] Remark on Andi's gallery-Plugin

  • From: Werner Flamme <werner.flamme@xxxxxx>
  • To: Mailingliste DokuWiki <dokuwiki@xxxxxxxxxxxxx>
  • Date: Mon, 12 Jun 2006 14:50:33 +0200

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

today I updated my homepage (up to date version of the gallery plugin
(Version 2006-05-26) and four pages that use it) and I found new behaviour
on those pages.

Old behaviour:
- - The thumbnails are shown in the size I give (with "200x200").
- - on click on one picture the background becomes dark and the picture is
displayed bigger (either default 800X600 or the size I give)

New behaviour:
- - The thumbnails are shown in the size I give (with "200x200") - no change
- - on click on one thumbnail the background becomes dark (no change) but the
picture is shown in the same size the thumbnails are. I may enter 400X400
or whatever size, they don't grow ;-)

A look at the code showed
        if(preg_match('/\b(\d+)x(\d+)\b/i',$params,$match)){
and
        if(preg_match('/\b(\d+)Y(\d+)\b/i',$params,$match)){
both have "i" at the end of the expression, that means "ignore case" AFAIK...

Just a hint to Andi - remove i at the end of the regex and the plugin will
work as expected again ;-)

Regards,
Werner
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFEjWMYk33Krq8b42MRAvP+AJ9MZ1dshMBpWC3yHkS3yhUEjHqGaACeKSGv
gea0Ki+z2JtcT9Zr8P1qHzU=
=xRye
-----END PGP SIGNATURE-----
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: