Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 2076)
+++ branches/2.8.x/CHANGELOG	(revision 2077)
@@ -11,6 +11,9 @@
 ! = Update/Change
 ===============================================================================
 
+06 Jan-2014 Build 2077 Manuela v.d.Decken(DarkViper)
+# little fixes in modules/news
+# little fixes in some other files
 06 Jan-2014 Build 2076 Manuela v.d.Decken(DarkViper)
 # some fixes in admin/users
 # some fixes in admin/pages
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 2076)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 2077)
@@ -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.4');
-if(!defined('REVISION')) define('REVISION', '2076');
+if(!defined('REVISION')) define('REVISION', '2077');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/framework/class.wb.php
===================================================================
--- branches/2.8.x/wb/framework/class.wb.php	(revision 2076)
+++ branches/2.8.x/wb/framework/class.wb.php	(revision 2077)
@@ -25,8 +25,6 @@
 /* -------------------------------------------------------- */
 // Include PHPLIB template class
 if(!class_exists('Template', false)){ include(WB_PATH.'/include/phplib/template.inc'); }
-// Include new wbmailer class (subclass of PHPmailer)
-if(!class_exists('wbmailer', false)){ include(WB_PATH.'/framework/class.wbmailer.php'); }
 
 class wb extends SecureForm
 {
Index: branches/2.8.x/wb/framework/UpgradeHelper.php
===================================================================
--- branches/2.8.x/wb/framework/UpgradeHelper.php	(revision 2076)
+++ branches/2.8.x/wb/framework/UpgradeHelper.php	(revision 2077)
@@ -129,12 +129,20 @@
 	{
 		if (defined('DB_PASSWORD')) {
 		// old config.php is active
-			if (!is_writable($sAppPath.'config.php') || !is_writable($sAppPath.'config.php.new') || !is_writable($sAppPath.'setup.ini.php.new'))
+			if (    !is_writable($sAppPath.'config.php')
+                 || (file_exists($sAppPath.'config.php.new') && !is_writable($sAppPath.'config.php.new'))
+                 || (file_exists($sAppPath.'setup.ini.php') && !is_writable($sAppPath.'setup.ini.php'))
+                 || (!file_exists($sAppPath.'setup.ini.php') && !is_writable($sAppPath.'setup.ini.php.new'))
+               )
 			{
 			// stop script if there's an error occured
-				$sMsg = 'Following files must exist and be writable to run upgrade:<br />'
-				      . '<ul><li>config.php</li>'.(file_exists($sAppPath.'config.php.new') ? '<li>config.php.new</li>' : '')
-				      . '<li>setup.ini.php.new</li></ul>';
+				$sMsg = 'Following files must exist and be writable to run upgrade:<br />'.PHP_EOL
+				      . '<ul>'.PHP_EOL
+                      . '<li>config.php</li>'.PHP_EOL
+                      . (file_exists($sAppPath.'config.php.new') ? '<li>config.php.new</li>'.PHP_EOL : '')
+                      . (file_exists($sAppPath.'setup.ini.php') ? '<li>setup.ini.php</li>'.PHP_EOL : '')
+                      . (!file_exists($sAppPath.'setup.ini.php') ? '<li>setup.ini.php.new</li>'.PHP_EOL : '')
+                      . '</ul>'.PHP_EOL;
 				self::dieWithMessage($sMsg);
 			} else { // ok, let's change the files now!
 				if (file_exists($sAppPath.'setup.ini.php')) {
Index: branches/2.8.x/wb/modules/news/upgrade.php
===================================================================
--- branches/2.8.x/wb/modules/news/upgrade.php	(revision 2076)
+++ branches/2.8.x/wb/modules/news/upgrade.php	(revision 2077)
@@ -159,7 +159,7 @@
 		// first copy values inside the table and exchange all \ by / in field `link`
 			$sql  = 'UPDATE `'.$oDb->TablePrefix.'mod_news_posts` '
 			      . 'SET `created_by`=`posted_by`, '
-			      .     '`created_when`=`posted_when` '
+			      .     '`created_when`=`posted_when`, '
 			      .     '`link`= REPLACE(`link`, \'\\\', \'/\')';
 			$oDb->query($sql);
 		// read Timestamps from old styled accessfiles
Index: branches/2.8.x/wb/modules/news/save_post.php
===================================================================
--- branches/2.8.x/wb/modules/news/save_post.php	(revision 2076)
+++ branches/2.8.x/wb/modules/news/save_post.php	(revision 2077)
@@ -59,14 +59,14 @@
 	$group_id   = intval($admin->get_post('group'));
 // Include WB functions file
 	require($oReg->AppPath.'framework/functions.php');
-// Work-out all needed path and filenames
-    $sAccessFsileRootPath = $oReg->AppPath.$oReg->PagesDir.$sNewsLinkSubdir;
+// Work-out all needed path and filenames 
+    $sAccessFileRootPath = $oReg->AppPath.$oReg->PagesDir.$sNewsLinkSubdir;
 	$sOldLink     = preg_replace('/^\/?'.preg_quote($sNewsLinkSubdir, '/').'/', '', str_replace('\\', '/', $admin->StripCodeFromText($admin->get_post('link'))));
     $sOldFilename = $sAccessFileRootPath.$sOldLink.$oReg->PageExtension;
 	$sNewLink     = page_filename($title).$oReg->PageSpacer.$post_id;
     $sNewFilename = $sAccessFileRootPath.$sNewLink.$oReg->PageExtension;
     $sBackUrl = $oReg->AcpUrl.'pages/modify.php?page_id='.$page_id;
-// get publisedwhen and publisheduntil
+// get publisedwhen and publisheduntil 
     $x = strtotime(preg_replace('/^(\d{1,2})\.(\d{1,2})\.(\d{2,4})(.*)$/s', '\2/\1/\3\4', $admin->get_post_escaped('publishdate')));
     $publishedwhen = $x ? $x : 0;
     $x = strtotime(preg_replace('/^(\d{1,2})\.(\d{1,2})\.(\d{2,4})(.*)$/s', '\2/\1/\3\4', $admin->get_post_escaped('enddate')), $publishedwhen);
