Active
Project:
Image watermark
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Apr 2010 at 20:11 UTC
Updated:
12 Apr 2010 at 20:11 UTC
watermark_form_alter() runs when we're adding a new image. However the test to see if we're adding an image is too restrictive -- it doesn't consider the case where Drupal is installed in a subdirectory.
Patch attached to test that $form['action'] *ends* in '/node/add/image' as opposed to explicitly equalling it. When Drupal's installed in a subdirectory, $form['action'] will equal something like '/mysubfolder/node/add/image'.
| Comment | File | Size | Author |
|---|---|---|---|
| watermark_fix_action_check.patch | 988 bytes | kpander |