1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Hides empty admin-navigation menu categories when access has not been granted to these areas.

This commit is contained in:
Cameron
2015-06-06 02:33:23 -07:00
parent 34ac81c019
commit 143784974d
5 changed files with 93 additions and 31 deletions

View File

@@ -263,7 +263,12 @@ class language{
* @return FALSE or the name of the valid Language
*/
function isValid($lang='')
{
{
if(empty($lang))
{
return false;
}
global $pref;
if(!$lang)