--- a/LightboxGallery.php Tue May 26 08:37:18 2009 -0400
+++ b/LightboxGallery.php Wed May 27 09:37:06 2009 -0400
@@ -17,7 +17,7 @@
function lbgallery_process_tags(&$text)
{
// if there are no galleries in this blob, just get out here. also pulls all the matches we need.
- if ( !preg_match_all('#<lightboxgallery(?: maxwidth="?([0-9]+)"?)>(.+?)</lightboxgallery>#s', $text, $matches) )
+ if ( !preg_match_all('#<lightboxgallery(?: maxwidth="?([0-9]+)"?)?>(.+?)</lightboxgallery>#s', $text, $matches) )
return true;
lbgallery_add_headers();