appdb/cron cleanup.php

WineHQ wineowner at wine.codeweavers.com
Thu Jun 14 23:54:57 CDT 2007


ChangeSet ID:	31202
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/06/14 23:54:57

Modified files:
	cron           : cleanup.php 

Log message:
	Chris Morgan <cmorgan at alum.wpi.edu>
	Assign the admin user to $SESSION['current']

Patch: http://cvs.winehq.org/patch.py?id=31202

Old revision  New revision  Changes     Path
 1.41          1.42          +1 -0       appdb/cron/cleanup.php

Index: appdb/cron/cleanup.php
diff -u -p appdb/cron/cleanup.php:1.41 appdb/cron/cleanup.php:1.42
--- appdb/cron/cleanup.php:1.41	15 Jun 2007  4:54:57 -0000
+++ appdb/cron/cleanup.php	15 Jun 2007  4:54:57 -0000
@@ -319,6 +319,7 @@ function removeScreenshotsWithMissingFil
     //       access to delete these screenshots
     $oUser = new User();
     $oUser->iUserId = 1000;
+    $_SESSION['current'] = $oUser;
 
     // remove the screenshots with missing files
     foreach($aMissingScreenshotIds as $iScreenshotId)



More information about the wine-cvs mailing list