Change photos folder location

hemog

Joined: 2009-07-18
Posts: 1
Posted: Sat, 2009-07-18 11:34

Hello !

Just one little question.

How i can change the location of photos folder in gallery 3 configuration files, db or interface ?

Math

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2009-07-18 17:37

grepping the code base it looks like that path is hard coded at the moment. I don't know if there are plans to change it. It appears you could just edit gallery3/modules/gallery/models/item.php

But I may have made a syntax error in my grep command or not looking for the right thing.

server:/www/gallery3# grep -nri 'var/albums' ./

Looks like you might also be able to move var by editing gallery3/index.php

server:/www/gallery3# grep -nri varpath ./
Scratch what I said above. Looks like index.php sets VARPATH and then quite a few other files reference that.

/gallery3/installer/init_var.php
/gallery3/modules/gallery/controllers/packager.php
/gallery3/modules/gallery/models/item.php
/gallery3/modules/gallery/test/Album_Helper_Test.php
/gallery3/modules/gallery/test/Dir_Helper_Test.php
/gallery3/modules/gallery/test/Gallery_Installer_Test.php
/gallery3/modules/gallery/test/Photo_Helper_Test.php

There may be others I missed (I'm working in a very tiny SSH console session at the moment)

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here