Skip to content

Commit 851f004

Browse files
committed
Update for the new base class for captcha plugins
1 parent 5113525 commit 851f004

File tree

13 files changed

+179
-182
lines changed

13 files changed

+179
-182
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@ env:
1111
IMAGE_ICC: 1
1212
EPV: 1
1313
EXECUTABLE_FILES: 1
14-
PHPBB_BRANCH: 3.3.x
14+
PHPBB_BRANCH: master
1515

1616
jobs:
1717
basic-tests:
1818
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
1919
name: php ${{ matrix.php-version }}, none none
20-
runs-on: ubuntu-22.04
20+
runs-on: ubuntu-latest
2121
env:
2222
PHP_VERSION: ${{ matrix.php-version }}
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
php-version: ['7.2']
26+
php-version: ['8.1']
2727
steps:
2828
- name: Checkout phpBB
2929
uses: actions/checkout@v4
@@ -91,6 +91,7 @@ jobs:
9191

9292
- name: Check image ICC profiles
9393
if: ${{ env.IMAGE_ICC == 1 }}
94+
9495
working-directory: phpBB3
9596
run: .github/check-image-icc-profiles.sh
9697

@@ -107,7 +108,7 @@ jobs:
107108
mysql-tests:
108109
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
109110
name: php ${{ matrix.php-version }}, ${{ matrix.db-type }} ${{ matrix.db-version }}
110-
runs-on: ubuntu-22.04
111+
runs-on: ubuntu-latest
111112
services:
112113
mysql:
113114
image: ${{ (matrix.db-type == 'mysql' || matrix.db-type == 'mariadb') && matrix.db-type || 'mariadb' }}:${{ (matrix.db-type == 'mysql' || matrix.db-type == 'mariadb' && matrix.db-version != 'none') && matrix.db-version || 'latest' }}
@@ -129,24 +130,6 @@ jobs:
129130
fail-fast: false
130131
matrix:
131132
include:
132-
- php-version: '7.2'
133-
db-type: 'mysql'
134-
db-version: '5.7'
135-
- php-version: '7.2'
136-
db-type: 'mariadb'
137-
db-version: '10.5'
138-
- php-version: '7.3'
139-
db-type: 'mariadb'
140-
db-version: '10.5'
141-
- php-version: '7.4'
142-
db-type: 'mysql'
143-
db-version: '8.0'
144-
- php-version: '7.4'
145-
db-type: 'mariadb'
146-
db-version: '10.5'
147-
- php-version: '8.0'
148-
db-type: 'mariadb'
149-
db-version: '10.5'
150133
- php-version: '8.1'
151134
db-type: 'mariadb'
152135
db-version: '10.6'
@@ -231,7 +214,7 @@ jobs:
231214
postgresql-tests:
232215
if: ${{ !contains(github.event.head_commit.message, 'skip ci') }}
233216
name: php ${{ matrix.php-version }}, ${{ matrix.db-type }} ${{ matrix.db-version }}
234-
runs-on: ubuntu-22.04
217+
runs-on: ubuntu-latest
235218
services:
236219
postgres:
237220
image: ${{ (matrix.db-type == 'postgres') && matrix.db-type || 'postgres' }}:${{ (matrix.db-type == 'postgres' && matrix.db-version != 'none') && matrix.db-version || 'alpine' }}
@@ -254,9 +237,9 @@ jobs:
254237
fail-fast: false
255238
matrix:
256239
include:
257-
- php-version: '7.2'
240+
- php-version: '8.3'
258241
db-type: 'postgres'
259-
db-version: '16-alpine'
242+
db-version: '17-alpine'
260243
- php-version: '8.4'
261244
db-type: 'postgres'
262245
db-version: '17-alpine'

adm/style/acp_captcha_hcaptcha.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% include 'overall_header.html' %}
1+
{% include('overall_header.html') %}
22

33
<a id="maincontent"></a>
44

@@ -34,7 +34,7 @@ <h1>{{ lang('ACP_VC_SETTINGS') }}</h1>
3434
<dd>
3535
<input type="password" id="hcaptcha-secret" name="hcaptcha_secret" value="{{ HCAPTCHA_SECRET }}" required="required" autocomplete="off" class="medium">
3636
<span id="toggle-hcaptcha-secret" title="{{ lang('ACP_HCAPTCHA_TOGGLE_SECRET', lang('HCAPTCHA_SECRET'))|striptags|escape('html_attr') }}">
37-
<i class="icon acp-icon acp-icon-resync fa-eye fa-fw" aria-hidden="true"></i>
37+
<i class="icon o-icon o-icon-font acp-icon acp-icon-resync fa-eye fa-fw" aria-hidden="true"></i>
3838
</span>
3939
</dd>
4040
</dl>
@@ -76,7 +76,7 @@ <h1>{{ lang('ACP_VC_SETTINGS') }}</h1>
7676
<div class="warningbox hidden"><strong>{{ lang('WARNING') }}</strong> {{ lang('CAPTCHA_PREVIEW_MSG') }}</div>
7777
{% endif %}
7878

79-
{% include CAPTCHA_PREVIEW %}
79+
{% include(CAPTCHA_PREVIEW) %}
8080
</fieldset>
8181

8282
<fieldset>
@@ -91,4 +91,4 @@ <h1>{{ lang('ACP_VC_SETTINGS') }}</h1>
9191
</fieldset>
9292
</form>
9393

94-
{% include 'overall_footer.html' %}
94+
{% include('overall_footer.html') %}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{% if S_HCAPTCHA_SETTINGS and not INCLUDED_HCAPTCHA_ACP_JS %}
2-
{% INCLUDEJS '@alfredoramos_hcaptcha/js/settings.js' %}
2+
{% INCLUDEJS('@alfredoramos_hcaptcha/js/settings.js') %}
33
{%- set INCLUDED_HCAPTCHA_ACP_JS = true -%}
44
{% endif %}
55

66
{% if S_HCAPTCHA_AVAILABLE and U_HCAPTCHA_SCRIPT and not INCLUDED_HCAPTCHA_JS %}
7-
{% INCLUDEJS U_HCAPTCHA_SCRIPT %}
7+
{% INCLUDEJS(U_HCAPTCHA_SCRIPT) %}
88
{%- set INCLUDED_HCAPTCHA_JS = true -%}
99
{% endif %}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{% if S_HCAPTCHA_SETTINGS and not INCLUDED_HCAPTCHA_ACP_CSS %}
2-
{% INCLUDECSS '@alfredoramos_hcaptcha/css/style.css' %}
2+
{% INCLUDECSS('@alfredoramos_hcaptcha/css/style.css') %}
33
{%- set INCLUDED_HCAPTCHA_ACP_CSS = true -%}
44
{% endif %}

0 commit comments

Comments
 (0)