phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] news_admin/inc class.uinews.inc.php,1.30


From: skwashd
Subject: [Phpgroupware-cvs] news_admin/inc class.uinews.inc.php,1.30
Date: Thu, 11 Aug 2005 14:36:00 +0200

Update of news_admin/inc

Modified Files:
     Branch: MAIN
            class.uinews.inc.php lines: +10 -12

Log Message:
fixes for bugs found when running in the real world

====================================================
Index: news_admin/inc/class.uinews.inc.php
diff -u news_admin/inc/class.uinews.inc.php:1.29 
news_admin/inc/class.uinews.inc.php:1.30
--- news_admin/inc/class.uinews.inc.php:1.29    Thu Aug  4 03:54:31 2005
+++ news_admin/inc/class.uinews.inc.php Thu Aug 11 12:36:35 2005
@@ -30,16 +30,15 @@
                var $sbox;
                var $public_functions = array
                                        (
-                       'add'           => True,
-                       'edit'          => True,
-                       'delete'        => True,
-                       'delete_item'   => True,
+                                               'add'           => True,
+                                               'edit'          => True,
+                                               'delete'        => True,
+                                               'delete_item'   => True,
                                                'newsletter'    => True,
-                                               'newsletter_send'=> True,
-                       'read_news'      => True,
+                                               'read_news'      => True,
                                                'show_news_home'=> True,
                                                'write_news'    => True
-               );
+                                       );

                /**
                * @constructor
@@ -145,7 +144,7 @@
                                $this->template->set_var('maintain', ' ');
                        }

-                       if ( count( $this->bo->acl->get_permissions() ) > 1 )
+                       if ( count( $this->bo->acl->get_permissions(true) ) > 1 
)
                        {
                                $this->template->set_var(
                                                        array
@@ -321,12 +320,12 @@
                */
                function add()
                {
-                       if($_POST['cancel'])
+                       if ( isset($_POST['cancel']) )
                        {
                                Header('Location: ' . 
$GLOBALS['phpgw']->link('/index.php','menuaction=news_admin.uinews.write_news'));
                                exit;
                        }
-                       if($_POST['submitit'])
+                       if ( isset($_POST['submitit']) )
                        {
                                $this->news_data = $_POST['news'];
                                if (! $this->news_data['subject'])
@@ -801,7 +800,6 @@
                        }

                        $GLOBALS['phpgw']->js->validate_file('base', 'toggle', 
'news_admin');
-                       $GLOBALS['phpgw']->js->validate_file('fckeditor', 
'fckconfig', 'news_admin');
                        $GLOBALS['phpgw']->js->validate_file('fckeditor', 
'fckeditor', 'news_admin');
                        $GLOBALS['phpgw_info']['flags']['java_script'] = '
                                <script type="text/javascript">






reply via email to

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