Changeset 852 in ExiteCMS for trunk/administration/site_links.php


Ignore:
Timestamp:
09/28/07 23:00:52 (5 years ago)
Author:
hverton
Message:

fixed some bugs in site_links.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/site_links.php

    r834 r852  
    9494        $data['menu_last'] = $current == $total ? 1 : 0; 
    9595        $data['menu_depth'] = $depth; 
    96         $data['external'] = (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")  ? 1 : 0); 
     96        $data['external'] = $data['link_window'] == 1; 
    9797        $data['link_visibility_name'] = getgroupname($data['link_visibility'], '-1'); 
    9898        $current++; 
     
    174174        $panel_filename = isset($_POST['panel_filename']) ? $_POST['panel_filename'] : ""; 
    175175        $link_parent = isset($_POST['link_parent']) ? $_POST['link_parent'] : "0"; 
     176        // if a protocol is specified in the URL, force it to open in a new window 
     177        if (strstr($link_url, "://")) { 
     178            $link_window = 1; 
     179        } 
    176180        if ($action == "edit") { 
    177181            $data = dbarray(dbquery("SELECT * FROM ".$db_prefix."site_links WHERE link_id='$link_id'")); 
Note: See TracChangeset for help on using the changeset viewer.