Code

Dont throw away the hidden inputs..
[gosa.git] / gosa-core / update-gosa
index 1a9a0f1d9e4069e2cd96afa988fdce20d5a4c270..c94fe9809fc0b7fc9212729fc86ed57d57cf831b 100755 (executable)
@@ -562,7 +562,7 @@ function rescan_images($path, $theme)
          }
 
          // New image if it is not already one
-         if (preg_match('/new/', $indexPath)) {
+         if (preg_match('/new/', $indexPath) && !preg_match('/new\.png$/', $indexPath)) {
            echo "!";
            $warnings[]= "Warning: skipped possible *new* image $path";
            flush();