From 57768cd1ce8dea7e1ef5299023e815950f6491f1 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 14 Feb 2015 00:09:02 +0100 Subject: [PATCH] Fixed update, applied changes to Vimeo --- com.woltlab.wcf/package.xml | 10 +++++++--- com.woltlab.wcf/update_2.1.0_rc_1.sql | 1 + com.woltlab.wcf/update_210.sql | 1 + .../files/acp/update_com.woltlab.wcf_2.1.0_rc_1.php | 13 +++++++++++++ 4 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 com.woltlab.wcf/update_2.1.0_rc_1.sql create mode 100644 wcfsetup/install/files/acp/update_com.woltlab.wcf_2.1.0_rc_1.php diff --git a/com.woltlab.wcf/package.xml b/com.woltlab.wcf/package.xml index 7338797b95..6038aa5096 100644 --- a/com.woltlab.wcf/package.xml +++ b/com.woltlab.wcf/package.xml @@ -90,13 +90,17 @@ - acptemplates_update.tar + option.xml files_update.tar - templates_update.tar + acp/update_com.woltlab.wcf_2.1.0_rc_1.php language/*.xml - option.xml + acptemplates_update.tar + templates_update.tar + + update_2.1.0_rc_1.sql + userGroupOption.xml 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 index 0000000000..c23b98edb8 --- /dev/null +++ b/com.woltlab.wcf/update_2.1.0_rc_1.sql @@ -0,0 +1 @@ +UPDATE wcf1_bbcode_media_provider SET regex = 'https?://vimeo\\.com/(?P\\d+)', html = '' WHERE title = 'Vimeo'; \ No newline at end of file diff --git a/com.woltlab.wcf/update_210.sql b/com.woltlab.wcf/update_210.sql index cf17db4258..4cf79cfb5f 100644 --- a/com.woltlab.wcf/update_210.sql +++ b/com.woltlab.wcf/update_210.sql @@ -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[a-zA-Z0-9_-]+)/sets/(?P[a-zA-Z0-9_-]+)', ''); UPDATE wcf1_bbcode_media_provider SET regex = 'https?://soundcloud.com/(?P[a-zA-Z0-9_-]+)/(?!sets/)(?P[a-zA-Z0-9_-]+)' WHERE title = 'Soundcloud'; UPDATE wcf1_bbcode_media_provider SET html = '' WHERE title = 'YouTube'; +UPDATE wcf1_bbcode_media_provider SET regex = 'https?://vimeo\\.com/(?P\\d+)', html = '' 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 index 0000000000..737910adbd --- /dev/null +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_2.1.0_rc_1.php @@ -0,0 +1,13 @@ + + * @package com.woltlab.wcf + * @category Community Framework + */ + +// rebuild options during update to properly handle new option +OptionEditor::resetCache(); -- 2.20.1