Default type to 'resource' for privileges display.

This commit is contained in:
Andrew McMillan 2010-06-29 23:49:16 +12:00
parent 22755fc766
commit 4065f26da2
2 changed files with 2 additions and 2 deletions

View File

@ -464,7 +464,7 @@ function privilege_to_bits( $raw_privs ) {
* @param integer $raw_bits A bit mask of the privileges.
* @return mixed The string (or array of strings) of privilege names
*/
function bits_to_privilege( $raw_bits, $resourcetype = 'calendar' ) {
function bits_to_privilege( $raw_bits, $resourcetype = 'resource' ) {
$out_priv = array();
if ( is_string($raw_bits) ) {

View File

@ -464,7 +464,7 @@ function privilege_to_bits( $raw_privs ) {
* @param integer $raw_bits A bit mask of the privileges.
* @return mixed The string (or array of strings) of privilege names
*/
function bits_to_privilege( $raw_bits, $resourcetype = 'calendar' ) {
function bits_to_privilege( $raw_bits, $resourcetype = 'resource' ) {
$out_priv = array();
if ( is_string($raw_bits) ) {