2.0 theme in 2.1

markandrew2

Joined: 2006-06-20
Posts: 2
Posted: Tue, 2006-06-20 16:31

Hi - I've been using G2.0 for a while and have just tried upgrading to 2.1; all went smoothly except for the theme I'm using, which is one I created myself. It doesn't seem to work at all with 2.1 - I can't even login as an admin to change the theme, because logging in requires the theme, which doesn't work!

is there any documentation anywhere which describes how to update themes from 2.0 -> 2.1? Or if not, can anyone give me any pointers as to what may need changing?

thanks

Mark

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2006-06-20 17:32

http://codex.gallery2.org/index.php/Gallery2:API_Changes_From_2.0_To_2.1

To update a theme you usually just need to change $ret->isError() to just $ret and GalleryStatus::success() to null and then update the required core api in the constructor.

 
markandrew2

Joined: 2006-06-20
Posts: 2
Posted: Wed, 2006-06-21 08:12

sounds pretty straight-forward, i'll give it a go, thanks