Skip to content

Commit da7d4e2

Browse files
committed
fix
1 parent d39acb5 commit da7d4e2

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

OpenForm.csproj

+10-3
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,16 @@
187187
<Content Include="AlpacaFormBuilder.ascx" />
188188
<Content Include="Edit.ascx" />
189189
<Content Include="EditData.ascx" />
190+
<Content Include="images\edit.png" />
191+
<Content Include="images\editcontent2.png" />
192+
<Content Include="images\editsettings2.png" />
193+
<Content Include="images\edittemplate.png" />
194+
<Content Include="images\exchange.png" />
195+
<Content Include="images\formbuilder.png" />
196+
<Content Include="images\help.png" />
197+
<Content Include="images\icon_extensions.png" />
198+
<Content Include="images\settings.gif" />
199+
<Content Include="images\settings.png" />
190200
<Content Include="js\alpaca-bundle.js" />
191201
<Content Include="js\alpaca-bundle.min.js">
192202
<DependentUpon>alpaca-bundle.js</DependentUpon>
@@ -246,9 +256,6 @@
246256
<ItemGroup>
247257
<Content Include="App_LocalResources\AlpacaFormBuilder.ascx.resx" />
248258
</ItemGroup>
249-
<ItemGroup>
250-
<Content Include="bundleconfig.json" />
251-
</ItemGroup>
252259
<PropertyGroup>
253260
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
254261
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>

OpenForm.dnn

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<package name="OpenForm" type="Module" version="03.05.00">
44
<friendlyName>OpenForm</friendlyName>
55
<description>OpenForm module. Requires OpenContent v3.4.5 or higher</description>
6-
<iconFile>~/Images/icon_extensions.png</iconFile>
6+
<iconFile>~/DesktopModules/OpenForm/Images/icon_extensions.png</iconFile>
77
<owner>
88
<name>Satrabel.be</name>
99
<organization>Satrabel.be</organization>

View.ascx.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ private JToken GetOptions()
102102

103103
// language options
104104
optionsFilename = Path.GetDirectoryName(templateFilename) + "\\" + $"options.{DnnLanguageUtils.GetCurrentCultureCode()}.json";
105-
JToken languageOptionsJson = JsonUtils.GetJsonFromFile(optionsFilename);
106-
optionsJson = optionsJson.JsonMerge(languageOptionsJson);
107-
105+
if (File.Exists(optionsFilename))
106+
{
107+
JToken languageOptionsJson = JsonUtils.GetJsonFromFile(optionsFilename);
108+
optionsJson = optionsJson.JsonMerge(languageOptionsJson);
109+
}
108110
return optionsJson;
109111
}
110112

0 commit comments

Comments
 (0)