Paths wrong on create gallery because ‘gallerypath’ hard coded
-
As far as I can ascertain, the path for NEW galleries is set thusly;
'gallerypath'=>implode(DIRECTORY_SEPARATOR, array('wp-content', 'uploads', 'sites', '%BLOG_ID%', 'nggallery')).DIRECTORY_SEPARATOR
In my opinion this is DOING_IT_WRONG, and the correct WordPress way would be to use the function provided for the purpose, wp_upload_dir(), the basedir element of the array returned there gives the real path in use.
The problem is we have several large multisites with 100s of sites on each, and we still use blogs.dir instead of the newer /uploads/sites/ method. We cannot easily change this. Your plugin no longer seems to provide a field to change the path, and I cannot find any filters for these settings either.
Could the ‘gallerypath’ options field be re-instated, and also could you use the correct WordPress method instead of hard-coding the path like that?
Many thanks!
- The topic ‘Paths wrong on create gallery because ‘gallerypath’ hard coded’ is closed to new replies.