Changeset 9501 for extensions/community/include
- Timestamp:
- Mar 3, 2011, 10:30:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/community/include/functions_community.inc.php
r9500 r9501 26 26 global $conf, $user; 27 27 28 if (!isset($conf['community_update'])) 29 { 30 conf_update_param('community_update', time()); 31 } 32 33 if (isset($_SESSION['community_user_permissions'])) 34 { 35 if ($_SESSION['community_update'] > $conf['community_update']) 36 { 37 return $_SESSION['community_user_permissions']; 38 } 39 } 40 28 41 $return = array( 29 42 'upload_whole_gallery' => false, … … 185 198 } 186 199 187 return $return; 200 $_SESSION['community_user_permissions'] = $return; 201 $_SESSION['community_update'] = time(); 202 203 return $_SESSION['community_user_permissions']; 188 204 } 189 205
Note: See TracChangeset
for help on using the changeset viewer.