string:tokens/2
This commit is contained in:
parent
3f9de8c073
commit
67637408fc
|
@ -90,7 +90,7 @@ list() ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
plugin(CfgFile) ->
|
plugin(CfgFile) ->
|
||||||
[AppName | _] = sting:tokens(CfgFile, "."),
|
[AppName | _] = string:tokens(CfgFile, "."),
|
||||||
{ok, Attrs} = application:get_all_key(AppName),
|
{ok, Attrs} = application:get_all_key(AppName),
|
||||||
Ver = proplists:get_value(vsn, Attrs, "0"),
|
Ver = proplists:get_value(vsn, Attrs, "0"),
|
||||||
Descr = proplists:get_value(description, Attrs, ""),
|
Descr = proplists:get_value(description, Attrs, ""),
|
||||||
|
|
Loading…
Reference in New Issue