[geeklog-cvs] Geeklog-1.x/public_html/admin/plugins/links category.php, 1.2, 1.3

Oliver ospiess at qs1489.pair.com
Wed Aug 29 01:23:11 EDT 2007


Update of /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/links
In directory qs1489.pair.com:/tmp/cvs-serv6923

Modified Files:
	category.php 
Log Message:
call-time pass by refference is deprecated

Index: category.php
===================================================================
RCS file: /usr/home/geeklog2/cvsroot/geeklog/Geeklog-1.x/public_html/admin/plugins/links/category.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** category.php	29 Aug 2007 04:27:22 -0000	1.2
--- category.php	29 Aug 2007 05:23:09 -0000	1.3
***************
*** 34,38 ****
  // +---------------------------------------------------------------------------+
  //
! // $Id: 
  
  require_once ('../../../lib-common.php');
--- 34,38 ----
  // +---------------------------------------------------------------------------+
  //
! // $Id:
  
  require_once ('../../../lib-common.php');
***************
*** 116,120 ****
  }
  
! function links_list_categories_recursive (&$data_arr, $cid, $indent) {
  
      global $_CONF, $_TABLES, $_LI_CONF, $LANG_LINKS_ADMIN;
--- 116,120 ----
  }
  
! function links_list_categories_recursive ($data_arr, $cid, $indent) {
  
      global $_CONF, $_TABLES, $_LI_CONF, $LANG_LINKS_ADMIN;
***************
*** 123,131 ****
  
      // get all children of present category
!     $sql = "SELECT cid,category,tid,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon FROM {$_TABLES['linkcategories']}
!             WHERE (pid='{$cid}')" . COM_getPermSQL('AND',0,3) . "ORDER BY pid,category";
      $result = DB_QUERY($sql);
      $nrows = DB_numRows($result);
!     
      if ($nrows>0) {
          for ($i = 0; $i < $nrows; $i++) {
--- 123,132 ----
  
      // get all children of present category
!     $sql = "SELECT cid,category,tid,owner_id,group_id,perm_owner,perm_group,perm_members,perm_anon "
!         . "FROM {$_TABLES['linkcategories']} "
!         . "WHERE (pid='{$cid}')" . COM_getPermSQL('AND',0,3) . "ORDER BY pid,category";
      $result = DB_QUERY($sql);
      $nrows = DB_numRows($result);
! 
      if ($nrows>0) {
          for ($i = 0; $i < $nrows; $i++) {
***************
*** 136,140 ****
              $data_arr[] = $A;
              if (DB_COUNT($_TABLES['linkcategories'], 'pid', $A['cid']) > 0) {
!                 $dummy = links_list_categories_recursive(&$data_arr, $A['cid'], $indent);
              }
          }
--- 137,141 ----
              $data_arr[] = $A;
              if (DB_COUNT($_TABLES['linkcategories'], 'pid', $A['cid']) > 0) {
!                 $data_arr = links_list_categories_recursive($data_arr, $A['cid'], $indent);
              }
          }
***************
*** 272,276 ****
      }
  
!     // clean 'em up 
      $description = addslashes (COM_checkHTML (COM_checkWords ($description)));
      $category = addslashes (COM_checkHTML (COM_checkWords ($category)));
--- 273,277 ----
      }
  
!     // clean 'em up
      $description = addslashes (COM_checkHTML (COM_checkWords ($description)));
      $category = addslashes (COM_checkHTML (COM_checkWords ($category)));
***************
*** 378,382 ****
          }
      }
!     
      return PLG_afterSaveSwitch (
          $_LI_CONF['aftersave'],
--- 379,383 ----
          }
      }
! 
      return PLG_afterSaveSwitch (
          $_LI_CONF['aftersave'],
***************
*** 385,389 ****
          2
      );
!     
  //    return $result;
  }
--- 386,390 ----
          2
      );
! 
  //    return $result;
  }
***************
*** 463,468 ****
  } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save'])) {
      $display .= COM_siteHeader ('menu', $LANG_LINKS_ADMIN[11]);
!     $result = links_save_category (COM_applyFilter ($_POST['cid']), 
!             COM_applyFilter ($_POST['old_cid']), 
              COM_applyFilter ($_POST['pid']), $_POST['category'], $_POST['description'],
              COM_applyFilter ($_POST['tid']),
--- 464,469 ----
  } else if (($mode == $LANG_ADMIN['save']) && !empty ($LANG_ADMIN['save'])) {
      $display .= COM_siteHeader ('menu', $LANG_LINKS_ADMIN[11]);
!     $result = links_save_category (COM_applyFilter ($_POST['cid']),
!             COM_applyFilter ($_POST['old_cid']),
              COM_applyFilter ($_POST['pid']), $_POST['category'], $_POST['description'],
              COM_applyFilter ($_POST['tid']),




More information about the geeklog-cvs mailing list