Changeset 2394


Ignore:
Timestamp:
Oct 3, 2014, 5:49:58 AM (4 years ago)
Author:
matthijs
Message:

ffrpc: Use actual_base instead of base for downloading

This updates the ffrpc to always work, even when there is no preferred
download location set, or when it does not exist.

This commit is similar to r2126, and fixes things broken in r2095.

References: #1079, #1191

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/luci/applications/luci-ffrpc/luasrc/controller/fon_ffrpc.lua

    r2393 r2394  
    165165        function export.downloads_add(uri, priority)
    166166                priority = priority or 3
    167                 local base = uci:get("luci_dlmanager", "dlmanager", "base")
     167                local base = uci:get("luci_dlmanager", "dlmanager", "actual_base")
    168168                if not base or not fs.access(base) then
    169169                        return {status = false}
Note: See TracChangeset for help on using the changeset viewer.