Changeset 288 for trunk/system/generators/common.php
- Timestamp:
- Sep 9, 2010, 7:29:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/generators/common.php
r267 r288 35 35 } 36 36 37 function InsertToAddressTree(&$Tree, $Address, $Name, $InterSubnets = false )37 function InsertToAddressTree(&$Tree, $Address, $Name, $InterSubnets = false, $ForceMark = false) 38 38 { 39 39 global $Config; … … 57 57 $NewAddress->ChangePrefix($Tree['Address']->Prefix + 1); 58 58 //echo('InsertToTree('.$NewAddress->AddressToString().'/'.$NewAddress->Prefix.')'."\n"); 59 $Tree['Items'][] = array('Address' => $NewAddress, 'Name' => $Name, 'Items' => array() );59 $Tree['Items'][] = array('Address' => $NewAddress, 'Name' => $Name, 'Items' => array(), 'ForceMark' => false); 60 60 InsertToAddressTree($Tree['Items'][count($Tree['Items']) - 1], $Address, $Name, true); 61 61 } else 62 62 { 63 63 64 $NewNode = array('Address' => $Address, 'Name' => $Name, 'Items' => array() );64 $NewNode = array('Address' => $Address, 'Name' => $Name, 'Items' => array(), 'ForceMark' => $ForceMark); 65 65 66 66 // Should be existed items placed under new node?
Note:
See TracChangeset
for help on using the changeset viewer.