Skip to content

Commit ccbe78a

Browse files
committed
Mod requires PHP 7.1
Signed-off-by: Michel Mendiola <suki@missallsunday.com>
1 parent 1f04562 commit ccbe78a

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

addHooks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
elseif (!defined('SMF'))
1515
exit('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.');
1616

17-
if (version_compare(PHP_VERSION, '7.0', '<'))
18-
exit('This mod needs PHP 7.0 or greater. You will not be able to install/use this mod, contact your host and ask for a php upgrade.');
17+
if (version_compare(PHP_VERSION, '7.1', '<'))
18+
exit('This mod needs PHP 7.1 or greater. You will not be able to install/use this mod, contact your host and ask for a php upgrade.');
1919

2020
if(function_exists('curl_init') === false) {
2121
exit('The requested PHP extension curl is missing from your system. You won\'t be able to use this mod without it.');

readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ When installing make sure to mark the "[b]Install in Other Themes[/b]" checkbox.
99

1010
[b]For SMF 2.0.x only[/b]
1111

12-
[b]Version 1.2.x and above requires [color=purple]PHP 7.0[/color] or greater[/b] and [color=purple]ECMAScript 2015[/color] or greater
12+
[b]Version 1.2.15 and above requires [color=purple]PHP 7.1[/color] or greater[/b] [color=purple]curl ext[/color] and [color=purple]ECMAScript 2015[/color] or greater
1313

1414
You can auto-embed any valid youtube or vimeo urls and the mod will automatically convert them to videos.
1515

16-
This mod will also add a BBC tag: [nobbc][youtube][/youtube], [gifv][/gifv] and [vimeo][/vimeo][/nobbc] where you can post your youtube or vimeo urls and it will be converted to a video directly in the message.
16+
This mod will also add a BBC tag: [nobbc][youtube][/youtube] and [vimeo][/vimeo][/nobbc] where you can post your youtube or vimeo urls and it will be converted to a video directly in the message.
1717

1818
You can enable/disable the mod as well as set the width and height for the videos, currently the mod support the following youtube and vimeo urls:
1919

@@ -49,13 +49,16 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
4949
- Spanish_es/utf8
5050
- Polish/utf8
5151

52+
I welcome translations, please post them on the mod's support topic.
53+
5254

5355
[color=purple][b][size=12pt]Changelog[/size][/b][/color]
5456
[code]
5557
1.2.15 - Dec 18, 2023
5658
- Fix setting for allowFullScreen
5759
- Don't need to parse new lines and spaces
5860
- Add phpunit tests
61+
- Mod now requires PHP 7.1
5962

6063
1.2.14 - May 06, 2023
6164
- Remove imgur support

tests/OharaYTEmbedTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public function testOYTE_bbc_add_button()
3030
OYTE_bbc_add_button($buttons);
3131

3232
$this->assertCount(2, $buttons);
33-
$this->assertSame('youtube', $buttons[0]['image']);
34-
$this->assertSame('vimeo', $buttons[1]['image']);
33+
$this->assertSame('youtube', $buttons[-1][0]['image']);
34+
$this->assertSame('vimeo', $buttons[0][0]['image']);
3535
}
3636

3737
public function testOYTE_settings()

0 commit comments

Comments
 (0)