[geeklog-devel] PLG_invokeService

Joe Mucchiello joe at ThrowingDice.com
Sun Feb 3 14:22:04 EST 2008

Shouldn't there be an if here. There's no reason to include lib-story 
if the service invoked is some other plugin's service.

function PLG_invokeService($type, $action, $args, &$output, &$svc_msg)
     global $_CONF;

     $retval = PLG_RET_ERROR;

     // load story services if type is story
     if ($type == 'story') {
         // ensure we can see the service_XXX_story functions
         require_once $_CONF['path_system'] . 'lib-story.php';

Joe Mucchiello
Throwing Dice Games

More information about the geeklog-devel mailing list