Member
Member
gracestanat   2008-12-24, 00:46
#1

Currently, I'm using this:

$albumroot = $_zp_themeroot . gettext ('/../../albums/') . getBareAlbumTitle();

i'm thinking that there MUST be a cleaner way to do it.

thanks in advance!

Member
Member
sbillard   2008-12-24, 01:56
#2

What do you want the result to be? If it is a server file path what you have won't even work. If someone sets the title of the album it won't match the folder and of course, the theme root has nothing to do with the albums paths. Also, paths are typically not translatable so the gettext('/../../albums/') is likely to cause trouble.

the server path is $path = getAlbumFolder().$album->name;

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.