activating a module through a php shell script

reynan

Joined: 2003-09-10
Posts: 49
Posted: Mon, 2007-03-26 15:59

hello, Im trying to make a php shell script that will install a module in my gallery. I'm still using the API of gallery found in core.PluginCallback::handleCallback.

It seems i was able to install the plugins (accdg to the mysql log, it inserts into the PluginParameterMap and so on.. ) but in the end. It rollback.

What does it take to rollback the transactions? Cant seems to install the module using the a shell script.

regards,
--reynan

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2007-03-26 16:04

include embed.php
GalleryEmbed::init fullInit

loadPlugin
$plugin->installOrUpgrade

GalleryEmbed::done (commit transaction)

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
reynan

Joined: 2003-09-10
Posts: 49
Posted: Tue, 2007-03-27 21:50

oops. i forgot to commit the transaction.

it all works now... thanks.