[geeklog-devel] plugin_autoinstall - two more issues

Blaine Lang devel at portalparts.com
Tue Oct 6 15:31:34 EDT 2009


Randy Kolenko wrote:
> Perhaps the most straightforward approach would be to pull the
> autouninstall out to its own uninstall_defaults.php file and include
> that from functions.inc and the auto-install routine.  Now THAT is much
> safer all around.
I have to agree and this solves the first issue reported.
1) Create an autouninstall.php and move the function from functions.inc 
into this new file
2) Add a require_once of autouninstall.php in functions.inc - now it's 
aware of the function
3) Add a require_once of autouninstall.php in autoinstall.php - now it's 
aware of the function and PLG_uninstall() will work.

No core code changes needed.






More information about the geeklog-devel mailing list