Exemple #1
0
 /**
  * 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);
 }
Exemple #2
0
 /**
  * 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);
 }