| @@ 850-858 (lines=9) @@ | ||
| 847 | $args = new stdClass(); |
|
| 848 | ||
| 849 | // Get the language file of the current site |
|
| 850 | if(!$site_srl) |
|
| 851 | { |
|
| 852 | $site_module_info = Context::get('site_module_info'); |
|
| 853 | $args->site_srl = (int)$site_module_info->site_srl; |
|
| 854 | } |
|
| 855 | else |
|
| 856 | { |
|
| 857 | $args->site_srl = $site_srl; |
|
| 858 | } |
|
| 859 | $output = executeQueryArray('module.getLang', $args); |
|
| 860 | if(!$output->toBool() || !$output->data) return; |
|
| 861 | // Set the cache directory |
|
| @@ 1675-1684 (lines=10) @@ | ||
| 1672 | if($member_info->is_admin == 'Y') return true; |
|
| 1673 | ||
| 1674 | $args = new stdClass(); |
|
| 1675 | if(!isset($site_srl)) |
|
| 1676 | { |
|
| 1677 | $site_module_info = Context::get('site_module_info'); |
|
| 1678 | if(!$site_module_info) return; |
|
| 1679 | $args->site_srl = $site_module_info->site_srl; |
|
| 1680 | } |
|
| 1681 | else |
|
| 1682 | { |
|
| 1683 | $args->site_srl = $site_srl; |
|
| 1684 | } |
|
| 1685 | ||
| 1686 | $args->member_srl = $member_info->member_srl; |
|
| 1687 | $output = executeQuery('module.isSiteAdmin', $args); |
|