Changeset 8379

Show
Ignore:
Timestamp:
03/19/12 22:04:15 (14 months ago)
Author:
jow
Message:

modules/admin-full: since switch port numbers depend on model and current solar cycle, give up on making the human readable but just give the raw index

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • luci/trunk/modules/admin-full/luasrc/model/cbi/admin_network/vlan.lua

    r7799 r8379  
    257257        -- Build per-port off/untagged/tagged choice lists. 
    258258        local pt 
    259         local off = 1 
    260259        for pt = 0, num_ports - 1 do 
    261260            local title 
    262261            if pt == cpu_port then 
    263                 off   = 0 
    264262                title = translate("CPU") 
    265263            else 
    266                 title = translatef("Port %d", pt + off) 
     264                title = translatef("Port %d", pt) 
    267265            end 
    268266