Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

invented defaultValue

  • Loading branch information...
commit 612bacc54ccc0cffbc3a992768f663d11c930d01 1 parent 4198c35
@kaffeemon authored
View
5 file/lib/system/option/InstantOptionHandler.class.php
@@ -22,6 +22,11 @@ class InstantOptionHandler extends \wcf\system\SingletonFactory {
*/
public function registerOptions(array $options) {
$this->options = array_merge($this->options, $options);
+
+ foreach ($options as $option) {
+ if ($option->defaultValue)
+ $this->values[$option->optionName] = $option->defaultValue;
+ }
}
/**
View
8 package.xml
@@ -4,8 +4,8 @@
<packagename><![CDATA[Instant Options]]></packagename>
<packagedescription><![CDATA[]]></packagedescription>
<isunique>1</isunique>
- <version>1.0.0 Alpha 1</version>
- <date>2012-03-26</date>
+ <version>1.0.0 Alpha 2</version>
+ <date>2012-03-28</date>
</packageinformation>
<authorinformation>
@@ -20,5 +20,9 @@
<instructions type="install">
<instruction type="file">file.tar</instruction>
</instructions>
+
+ <instructions type="update" fromversion="1.0.0 Alpha *">
+ <instruction type="file">file.tar</instruction>
+ </instructions>
</package>
Please sign in to comment.
Something went wrong with that request. Please try again.