Assign the admin user to $SESSION['current']

This commit is contained in:
Chris Morgan
2007-06-15 04:54:57 +00:00
committed by WineHQ
parent 9135f3ee99
commit 9d35df1b54

View File

@@ -319,6 +319,7 @@ function removeScreenshotsWithMissingFiles()
// access to delete these screenshots // access to delete these screenshots
$oUser = new User(); $oUser = new User();
$oUser->iUserId = 1000; $oUser->iUserId = 1000;
$_SESSION['current'] = $oUser;
// remove the screenshots with missing files // remove the screenshots with missing files
foreach($aMissingScreenshotIds as $iScreenshotId) foreach($aMissingScreenshotIds as $iScreenshotId)