Fixed update, applied changes to Vimeo
authorAlexander Ebert <ebert@woltlab.com>
Fri, 13 Feb 2015 23:09:02 +0000 (00:09 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 13 Feb 2015 23:09:02 +0000 (00:09 +0100)
com.woltlab.wcf/package.xml
com.woltlab.wcf/update_2.1.0_rc_1.sql [new file with mode: 0644]
com.woltlab.wcf/update_210.sql
wcfsetup/install/files/acp/update_com.woltlab.wcf_2.1.0_rc_1.php [new file with mode: 0644]

index 7338797b9565bb6259491036548df20d8bc5d611..6038aa509640e6f3c7878f34539fd8fd35e7b1b3 100644 (file)
        </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>
diff --git a/com.woltlab.wcf/update_2.1.0_rc_1.sql b/com.woltlab.wcf/update_2.1.0_rc_1.sql
new file mode 100644 (file)
index 0000000..c23b98e
--- /dev/null
@@ -0,0 +1 @@
+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
index cf17db42581c7ec5160303ae9b76d32eeba96bbb..4cf79cfb5f0456bdfc44901ef6f965e7cdc2225e 100644 (file)
@@ -295,6 +295,7 @@ DELETE FROM wcf1_style_variable WHERE variableName = 'wcfMainMenuHoverBackground
 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';
 
 /* 
  * ##############################
diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_2.1.0_rc_1.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_2.1.0_rc_1.php
new file mode 100644 (file)
index 0000000..737910a
--- /dev/null
@@ -0,0 +1,13 @@
+<?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();