[Fusionforge-commits] FusionForge branch master updated. 9f01b9d252aa28920ef4a0418a7b78e55db94df7

Franck VILLAUME nerville at fusionforge.org
Sun Dec 9 14:49:02 CET 2012

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  9f01b9d252aa28920ef4a0418a7b78e55db94df7 (commit)
      from  560b9e825a1c185d8961190bdc9841b9731e7724 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9f01b9d252aa28920ef4a0418a7b78e55db94df7
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sun Dec 9 14:17:52 2012 +0100

    add simple error msg on mkdir failure

diff --git a/src/common/widget/Widget_Rss.class.php b/src/common/widget/Widget_Rss.class.php
index ab5457e..d108026 100644
--- a/src/common/widget/Widget_Rss.class.php
+++ b/src/common/widget/Widget_Rss.class.php
@@ -51,7 +51,9 @@ require_once 'Widget.class.php';
 			require_once 'common/rss/simplepie.inc';
 			if (!is_dir(forge_get_config('data_path') .'/rss')) {
-				mkdir(forge_get_config('data_path') .'/rss');
+				if (!mkdir(forge_get_config('data_path') .'/rss')) {
+					$content .= '<p class="error_msg" >'._('Cannot create backend directory. Contact forge administrator.').'</p>';
+				}
 			$rss = new SimplePie($this->rss_url, forge_get_config('data_path') .'/rss', null, forge_get_config('sys_proxy'));
 			$max_items = 10;


Summary of changes:
 src/common/widget/Widget_Rss.class.php |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)


More information about the Fusionforge-commits mailing list