From bfb5eb6682da464bfbec1acf214af9d7b810adfd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 20 Sep 2009 09:47:48 +0000 Subject: [PATCH] "fixed not working regular expression to hide .picture.jpg, it was hiding all attachments" --- resources/inc/class.resources_hooks.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/inc/class.resources_hooks.inc.php b/resources/inc/class.resources_hooks.inc.php index 1087922668..6b22565daf 100644 --- a/resources/inc/class.resources_hooks.inc.php +++ b/resources/inc/class.resources_hooks.inc.php @@ -109,7 +109,7 @@ class resources_hooks 'add_app' => 'link_app', 'add_id' => 'link_id', 'add_popup' => '800x600', - 'find_extra' => array('name_preg' => '/^(?!.picture.jpg)$/'), // remove pictures from regular attachment list + 'find_extra' => array('name_preg' => '/^(?(?=^.picture.jpg$)|.+)$/'), // remove pictures from regular attachment list ); }