Skip to content
Permalink
Browse files

Move get_groups() back to txplib_misc.php

Just because some public-side plugins use it at the moment.
  • Loading branch information...
Bloke committed Nov 8, 2019
1 parent f914342 commit 1d1d5698d7e39bf311abbdd1c7a1e93c795e6a70
Showing with 18 additions and 18 deletions.
  1. +0 −18 textpattern/lib/txplib_admin.php
  2. +18 −0 textpattern/lib/txplib_misc.php
@@ -1167,24 +1167,6 @@ function assign_user_assets($owner, $new_owner)
return true;
}
/**
* Gets a list of user groups.
*
* @return array
* @package User
* @example
* print_r(
* get_groups()
* );
*/
function get_groups()
{
global $txp_groups;
return doArray($txp_groups, 'gTxt');
}
/**
* Validates a string as a username.
*
@@ -426,6 +426,24 @@ function load_lang($lang, $events = null)
return $textarray;
}
/**
* Gets a list of user groups.
*
* @return array
* @package User
* @example
* print_r(
* get_groups()
* );
*/
function get_groups()
{
global $txp_groups;
return doArray($txp_groups, 'gTxt');
}
/**
* Checks if a user has privileges to the given resource.
*

0 comments on commit 1d1d569

Please sign in to comment.
You can’t perform that action at this time.