Модуль:Предмет: различия между версиями
Pok (обсуждение | вклад) Нет описания правки |
Pok (обсуждение | вклад) Нет описания правки |
||
| Строка 31: | Строка 31: | ||
local isVert = argsRaw.vertical ~= nil | local isVert = argsRaw.vertical ~= nil | ||
local projPrefix = JsonPaths.prefix() | -- Если id найден в JsonPaths, префиксы не нужны | ||
local projPrefixFile = JsonPaths.prefixFile() | local hasId = (JsonPaths.has(id) == true) | ||
local projPrefix = hasId and '' or JsonPaths.prefix() | |||
local projPrefixFile = hasId and '' or JsonPaths.prefixFile() | |||
-- Получение имени | -- Получение имени | ||