</instructions>
<instructions type="update" fromversion="2.1.0 Beta 4">
- <instruction type="acpTemplate">acptemplates_update.tar</instruction>
+ <instruction type="option">option.xml</instruction>
<instruction type="file">files_update.tar</instruction>
- <instruction type="template">templates_update.tar</instruction>
+ <instruction type="script">acp/update_com.woltlab.wcf_2.1.0_rc_1.php</instruction>
<instruction type="language" run="standalone">language/*.xml</instruction>
- <instruction type="option">option.xml</instruction>
+ <instruction type="acpTemplate">acptemplates_update.tar</instruction>
+ <instruction type="template">templates_update.tar</instruction>
+
+ <instruction type="sql">update_2.1.0_rc_1.sql</instruction>
+
<instruction type="userGroupOption">userGroupOption.xml</instruction>
</instructions>
</package>
--- /dev/null
+UPDATE wcf1_bbcode_media_provider SET regex = 'https?://vimeo\\.com/(?P<ID>\\d+)', html = '<iframe src="https://player.vimeo.com/video/{$ID}" width="400" height="225" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>' WHERE title = 'Vimeo';
\ No newline at end of file
INSERT INTO wcf1_bbcode_media_provider (title, regex, html) VALUES ('Soundcloud set', 'https?://soundcloud.com/(?P<artist>[a-zA-Z0-9_-]+)/sets/(?P<name>[a-zA-Z0-9_-]+)', '<iframe width="100%" height="450" scrolling="no" src="https://w.soundcloud.com/player/?url=http%3A%2F%2Fsoundcloud.com%2F{$artist}%2Fsets%2F{$name}"></iframe>');
UPDATE wcf1_bbcode_media_provider SET regex = 'https?://soundcloud.com/(?P<artist>[a-zA-Z0-9_-]+)/(?!sets/)(?P<song>[a-zA-Z0-9_-]+)' WHERE title = 'Soundcloud';
UPDATE wcf1_bbcode_media_provider SET html = '<iframe style="max-width:100%;" width="560" height="315" src="https://www.youtube-nocookie.com/embed/{$ID}?wmode=transparent{$start}" allowfullscreen></iframe>' WHERE title = 'YouTube';
+UPDATE wcf1_bbcode_media_provider SET regex = 'https?://vimeo\\.com/(?P<ID>\\d+)', html = '<iframe src="https://player.vimeo.com/video/{$ID}" width="400" height="225" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>' WHERE title = 'Vimeo';
/*
* ##############################
--- /dev/null
+<?php
+use wcf\data\option\OptionEditor;
+
+/**
+ * @author Alexander Ebert
+ * @copyright 2001-2015 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package com.woltlab.wcf
+ * @category Community Framework
+ */
+
+// rebuild options during update to properly handle new option
+OptionEditor::resetCache();