plugins/SpecialPageFuncs.php
changeset 1373 851b91febb85
parent 1356 e80b5733ce9d
child 1377 fa2b0825bbc5
--- a/plugins/SpecialPageFuncs.php	Mon Nov 19 11:39:25 2012 -0500
+++ b/plugins/SpecialPageFuncs.php	Mon Nov 19 11:40:35 2012 -0500
@@ -716,7 +716,15 @@
 		$key = "upload_progress_{$_GET['uploadstatus']}";
 		$info = isset($_SESSION[$key]) ? $_SESSION[$key] : array();
 		if ( isset($_SESSION[$key]) && $_SESSION[$key]['done'] )
+		{
 			unset($_SESSION[$key]);
+		}
+		
+		if ( !isset($_SESSION[$key]) )
+		{
+			// workaround to cause stuck uploads on the client side to shut up
+			$info['done'] = true;
+		}
 		
 		if ( is_array($info) )
 		{