phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] sitemgr/inc class.Content_BO.inc.php [Version-0_9_16-


From: Caeies
Subject: [Phpgroupware-cvs] sitemgr/inc class.Content_BO.inc.php [Version-0_9_16-branch]
Date: Wed, 28 Mar 2007 15:31:36 +0000

CVSROOT:        /cvsroot/phpgroupware
Module name:    sitemgr
Branch:         Version-0_9_16-branch
Changes by:     Caeies <Caeies> 07/03/28 15:31:36

Modified files:
        inc            : class.Content_BO.inc.php 

Log message:
        consistently return errors in some case when saving datas in block

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/sitemgr/inc/class.Content_BO.inc.php?cvsroot=phpgroupware&only_with_tag=Version-0_9_16-branch&r1=1.2.2.1&r2=1.2.2.2

Patches:
Index: class.Content_BO.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/inc/class.Content_BO.inc.php,v
retrieving revision 1.2.2.1
retrieving revision 1.2.2.2
diff -u -b -r1.2.2.1 -r1.2.2.2
--- class.Content_BO.inc.php    23 Jun 2003 20:31:21 -0000      1.2.2.1
+++ class.Content_BO.inc.php    28 Mar 2007 15:31:35 -0000      1.2.2.2
@@ -201,7 +201,7 @@
                        $oldblock = $this->so->getblockdef($block->id);
                        if (!($oldblock && 
$GLOBALS['Common_BO']->acl->can_write_category($oldblock->cat_id)))
                        {
-                               return lang("You are not entitled to edit block 
%1",$block->id);
+                               return array(lang("You are not entitled to edit 
block %1",$block->id));
                        }
                        $this->so->saveblockdata($block);
                        
$this->so->saveblockdatalang($block->id,$block->title,$lang);
@@ -233,7 +233,7 @@
                        $oldblock = $this->so->getblockdef($block->id);
                        if (!($oldblock && 
$GLOBALS['Common_BO']->acl->can_write_category($oldblock->cat_id)))
                        {
-                               return lang("You are not entitled to edit block 
%1",$block->id);
+                               return array(lang("You are not entitled to edit 
block %1",$block->id));
                        }
                        
$this->so->saveblockdatalang($block->id,$block->title,$lang);
                        $moduleobject = $this->getblockmodule($block->id);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]