From: Alan H. <min...@us...> - 2005-11-11 23:21:54
|
Update of /cvsroot/gallery/gallery2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10893 Modified Files: init.inc Log Message: My recent shutterfly/photoaccess updates make permission updates in upgrade code which fail without a session/active user; so new install of these modules or upgrade via upgrader (not site admin) failed. Refactored installer/upgrader so now install modules and upgrade core/modules have an empty session with an admin user as active user. Updated GalleryEntity::onLoad with new method to detect if it is in install/upgrade as $session will now be set. And show debug output in install modules if a module install fails. Index: init.inc =================================================================== RCS file: /cvsroot/gallery/gallery2/init.inc,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- init.inc 26 Oct 2005 00:20:58 -0000 1.16 +++ init.inc 11 Nov 2005 23:21:46 -0000 1.17 @@ -127,6 +127,8 @@ if ($ret->isError()) { return $ret->wrap(__FILE__, __LINE__); } + } else { + $gallery->initEmptySession(); } /* Initialize our translator */ |