phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgwapi/inc class.sbox2.inc.php,1.12,1.13


From: Bettina Gille <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.sbox2.inc.php,1.12,1.13
Date: Fri, 18 Oct 2002 20:42:38 -0400

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv28677

Modified Files:
        class.sbox2.inc.php 
Log Message:
update

Index: class.sbox2.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.sbox2.inc.php,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** class.sbox2.inc.php 30 Jun 2002 12:18:07 -0000      1.12
--- class.sbox2.inc.php 19 Oct 2002 00:42:36 -0000      1.13
***************
*** 351,354 ****
--- 351,364 ----
                {
                        // echo 
"<p>getProject('$name',$id_name,'$query_name','$title')</p>";
+ 
+                       // fallback if projects is not installed or not enabled 
for user
+                       if (!file_exists(PHPGW_SERVER_ROOT.'/projects') || 
!$GLOBALS['phpgw_info']['user']['apps']['projects']['enabled'])
+                       {
+                               return array(
+                                       $name => "<input type=\"hidden\" 
name=\"id_$name\" value=\"$id_name\">\n",
+                                       $name.'_no_js' => '',
+                                       $name.'_title' => ''
+                               );
+                       }
                        if ($id_name || $query_name)
                        {
***************
*** 364,374 ****
                                        while ($projs && list( $key,$proj ) = 
each( $projs ))
                                        {
!                                               $content[$proj['id']] = 
$proj['title'];
                                        }
                                }
                                else
                                {
!                                       list( $proj ) = 
$projects->read_single_project( $id_name );
!                                       if (count($proj))
                                        {
                                                $content = $proj['title'];
--- 374,383 ----
                                        while ($projs && list( $key,$proj ) = 
each( $projs ))
                                        {
!                                               $content[$proj['project_id']] = 
$proj['title'];
                                        }
                                }
                                else
                                {
!                                       if ($proj = 
$projects->read_single_project( $id_name ))
                                        {
                                                $content = $proj['title'];
***************
*** 581,585 ****
  
                        /* Get global and app-specific category listings */
!                       $cats_link .= 
$this->cat->formated_list('select','all',$cat_id,True);
                        $cats_link .= '</select>'."\n";
  
--- 590,594 ----
  
                        /* Get global and app-specific category listings */
!                       $cats_link .= 
$this->cat->formatted_list('select','all',$cat_id,True);
                        $cats_link .= '</select>'."\n";
  





reply via email to

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