/** * Get the status if user is allowed to post * Return: boolean **/ public static function userCanPost($id = 0) { require_once JPATH_ROOT . '/components/com_myblog/functions.myblog.php'; return myGetUserCanPost($id); }
/** * Get the status if user is allowed to post * Return: boolean **/ function userCanPost($id = 0) { require_once JPATH_ROOT . DS . 'components' . DS . 'com_myblog' . DS . 'functions.myblog.php'; return myGetUserCanPost($id); }