samtiria / nextgen-gallery

Automatically exported from code.google.com/p/nextgen-gallery
0 stars 0 forks source link

(PATCH) Make compatible with symlinked plugin directory. #427

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I deploy all of my sites using modman which uses symlinks to intersperse 
project files with core files. However, Wordpress's plugin_basename doesn't 
really like symlinks. The fix is simple and will not break backwards 
compatibility. Patch is attached.

Thanks,
Colin

Original issue reported on code.google.com by cm5...@gmail.com on 12 Oct 2011 at 10:18

Attachments:

GoogleCodeExporter commented 8 years ago
THX fixed in r1012

Original comment by alex.cologne on 16 Oct 2011 at 7:59

GoogleCodeExporter commented 8 years ago
Thanks for applying the patch. However it seems this line wasn't patched:

-   define('NGGFOLDER', plugin_basename( dirname(__FILE__)) );
+   define('NGGFOLDER', basename(dirname(__FILE__)) );

Original comment by cm5...@gmail.com on 17 Oct 2011 at 3:39

GoogleCodeExporter commented 8 years ago
Yep you are right, fixed in r1018

Original comment by alex.cologne on 17 Oct 2011 at 5:32