Show
Ignore:
Timestamp:
05/10/07 22:55:06 (15 years ago)
Author:
ralle030583
Message:

Bugfix:
- KBSITE was missing in some selects for generating the admin menue ...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/admin/admin_navmanager.php

    r222 r223  
    3333        repairStatLink(); 
    3434} 
    35 //Reading global Navigatio      n Bar 
     35 
    3636$html .= "<div class=block-header2>Navigation for intern pages</div>"; 
    3737$qry = new DBQuery(); 
    38 $query = "select * from kb3_navigation WHERE intern = 1;"; 
     38$query = "select * from kb3_navigation WHERE intern = 1 AND KBSITE = '".KB_SITE."';"; 
    3939$result = $qry->execute($query); 
    4040 
     
    7474$html .= "<div class=block-header2>Navigation for extern pages</div>"; 
    7575$qry = new DBQuery(); 
    76 $query = "select * from kb3_navigation WHERE intern = 0;"; 
     76$query = "select * from kb3_navigation WHERE intern = 0 AND KBSITE = '".KB_SITE."';"; 
    7777$result = $qry->execute($query); 
    7878 
     
    136136$html .= "<div class=block-header2>Order of the pages in Top Navigation Bar</div>"; 
    137137$qry = new DBQuery(); 
    138 $query = "select * from kb3_navigation WHERE nav_type = 'top' ORDER BY posnr;"; 
     138$query = "select * from kb3_navigation WHERE nav_type = 'top' AND KBSITE = '".KB_SITE."' ORDER BY posnr ;"; 
    139139$result = $qry->execute($query); 
    140140 
     
    223223        $row = $qry->getRow(); 
    224224        $posnr = $row['nr']+1; 
    225         $query = "INSERT INTO kb3_navigation SET descr='$descr', intern=0, nav_type='top',url='$url', target ='$target', posnr=$posnr, page='ALL_PAGES'"; 
     225        $query = "INSERT INTO kb3_navigation SET descr='$descr', intern=0, nav_type='top',url='$url', target ='$target', posnr=$posnr, page='ALL_PAGES', KBSITE = '".KB_SITE."'"; 
    226226        $qry->execute($query); 
    227227}