~ubuntu-branches/ubuntu/quantal/gallery2/quantal

« back to all changes in this revision

Viewing changes to modules/core/classes/helpers/GalleryPermissionHelper_advanced.class

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2007-09-10 20:22:19 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070910202219-0jsuntvqge4ade6b
Tags: 2.2.3-2
Add Slovak translation of Debconf templates.  (Thanks to 
Ivan Masá.  Closes: #441671)

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 * @package GalleryCore
26
26
 * @subpackage Helpers
27
27
 * @author Bharat Mediratta <bharat@menalto.com>
28
 
 * @version $Revision: 15830 $
 
28
 * @version $Revision: 16471 $
29
29
 * @static
30
30
 */
31
31
class GalleryPermissionHelper_advanced {
382
382
                    $removeEventData[$targetItemId] = $removeEventDataForAcl[$oldAclId];
383
383
                }
384
384
                /* Clear the in-memory permission cache for this item (all groups, users). */
385
 
                $cacheKey = "GalleryPermissionHelper::getPermissions\\($targetItemId,\\d+\\)";
 
385
                $cacheKey =
 
386
                    'GalleryPermissionHelper::getPermissions\(' . $targetItemId . ',\d+,\d\)';
 
387
                GalleryDataCache::removeByPattern($cacheKey);
 
388
                $cacheKey = 'GalleryPermissionHelper::fetchAccessListIds\(.*\)';
386
389
                GalleryDataCache::removeByPattern($cacheKey);
387
390
            }
388
391
        }