[geeklog-cvs] Geeklog-1.x/plugins/links functions.inc,1.91,1.92

Dirk Haun dhaun at qs1489.pair.com
Sat Dec 29 11:12:51 EST 2007


Update of /cvsroot/geeklog/Geeklog-1.x/plugins/links
In directory qs1489.pair.com:/tmp/cvs-serv43304/plugins/links

Modified Files:
	functions.inc 
Log Message:
Undefined variable


Index: functions.inc
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/plugins/links/functions.inc,v
retrieving revision 1.91
retrieving revision 1.92
diff -C2 -d -r1.91 -r1.92
*** functions.inc	29 Dec 2007 16:05:36 -0000	1.91
--- functions.inc	29 Dec 2007 16:12:49 -0000	1.92
***************
*** 1459,1475 ****
  * set from the language file using $LANG_LINKS['root']
  */
! function links_breadcrumbs ($root, $cid) {
      global $_CONF, $_TABLES, $LANG_LINKS;
      $breadcrumb = '';
      $c = $cid;
!     if ($root <> $cid) {
!         while (!($pid == $root)) {
!             $parent = DB_query("SELECT cid,pid,category FROM {$_TABLES['linkcategories']}
!                                 WHERE cid='{$c}'");
              $A = DB_fetchArray($parent);
!             if ($cid<>$c) {
!                 $content = stripslashes ($A['category']);
                  $url = $_CONF['site_url'] . '/links/portal.php?what=category&item=' . $A['cid'];
!                 $breadcrumb = COM_createLink ($content, $url) . ' : ' . $breadcrumb;
              } else {
                  $breadcrumb = $A['category'] . $breadcrumb;
--- 1459,1477 ----
  * set from the language file using $LANG_LINKS['root']
  */
! function links_breadcrumbs($root, $cid)
! {
      global $_CONF, $_TABLES, $LANG_LINKS;
+ 
      $breadcrumb = '';
      $c = $cid;
!     $pid = '';
!     if ($root != $cid) {
!         while ($pid != $root) {
!             $parent = DB_query("SELECT cid,pid,category FROM {$_TABLES['linkcategories']} WHERE cid='{$c}'");
              $A = DB_fetchArray($parent);
!             if ($cid != $c) {
!                 $content = stripslashes($A['category']);
                  $url = $_CONF['site_url'] . '/links/portal.php?what=category&item=' . $A['cid'];
!                 $breadcrumb = COM_createLink($content, $url) . ' : ' . $breadcrumb;
              } else {
                  $breadcrumb = $A['category'] . $breadcrumb;
***************
*** 1479,1484 ****
          }
      }
      $url = $_CONF['site_url'] . '/links/index.php';
!     $breadcrumb = COM_createLink ($LANG_LINKS['root'], $url) . ' : ' . $breadcrumb;
      return $breadcrumb;
  }
--- 1481,1488 ----
          }
      }
+ 
      $url = $_CONF['site_url'] . '/links/index.php';
!     $breadcrumb = COM_createLink($LANG_LINKS['root'], $url) . ' : ' . $breadcrumb;
! 
      return $breadcrumb;
  }




More information about the geeklog-cvs mailing list