Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1592)
+++ branches/2.8.x/CHANGELOG	(revision 1593)
@@ -11,6 +11,8 @@
 ! = Update/Change
 
 =========================== add small Features 2.8.2 ==========================
+01 Feb-2012 Build 1593 Dietmar Woellbrink (Luisehahne)
+# rebuild protectfile in pages/posts
 31 Jan-2012 Build 1592 Werner v.d.Decken(DarkViper)
 # little Typo-fix in database::SqlImport(). (grummel)
 31 Jan-2012 Build 1591 Werner v.d.Decken(DarkViper)
Index: branches/2.8.x/wb/upgrade-script.php
===================================================================
--- branches/2.8.x/wb/upgrade-script.php	(revision 1592)
+++ branches/2.8.x/wb/upgrade-script.php	(revision 1593)
@@ -501,6 +501,18 @@
 		print '<br /><strong>Upgrade '.MEDIA_DIRECTORY.'/ protect files</strong>'." $FAIL!<br />";
 		print implode ('<br />',$array);
 	}
+/**********************************************************
+ * upgrade posts folder index protect files
+ */
+	$sPostsPath = WB_PATH.PAGES_DIRECTORY.'/posts';
+	echo '<h4>Upgrade /posts/ index.php protect files</h4><br />';
+	$array = rebuildFolderProtectFile($sPostsPath);
+	if( sizeof( $array ) ){
+		print '<br /><strong>Upgrade '.sizeof( $array ).' /posts/ protect files</strong>'." $OK<br />";
+	} else {
+		print '<br /><strong>Upgrade /posts/ protect files</strong>'." $FAIL!<br />";
+		print implode ('<br />',$array);
+	}
 /* *****************************************************************************
  * - check for deprecated / never needed files
  */
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1592)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1593)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.2');
-if(!defined('REVISION')) define('REVISION', '1592');
+if(!defined('REVISION')) define('REVISION', '1593');
 if(!defined('SP')) define('SP', 'SP2');
Index: branches/2.8.x/wb/modules/news/upgrade.php
===================================================================
--- branches/2.8.x/wb/modules/news/upgrade.php	(revision 1592)
+++ branches/2.8.x/wb/modules/news/upgrade.php	(revision 1593)
@@ -78,6 +78,8 @@
 			$sql .= 'SET `created_by`=`posted_by`, `created_when`=`posted_when`';
 			$database->query($sql);
 		}
+
+	$array = rebuildFolderProtectFile($sPostsPath);
 	// now iterate through all existing accessfiles,
 	// write its creation date into database
 		$oDir = new DirectoryIterator($sPostsPath);
