diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e39ac51..7dd986c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -364,17 +364,17 @@ jobs: db: "mcr.microsoft.com/mssql/server:2017-latest" db_alias: 'MSSQL 2017' - php: '8.1' - db: "mcr.microsoft.com/mssql/server:2019-latest" + db: "mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04" db_alias: 'MSSQL 2019' - php: '8.1' - db: "mcr.microsoft.com/mssql/server:2022-latest" + db: "mcr.microsoft.com/mssql/server:2022-CU13-ubuntu-22.04" db_alias: 'MSSQL 2022' name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }} services: mssql: - image: ${{ matrix.db != 'mcr.microsoft.com/mssql/server:2017-latest' && matrix.db != 'mcr.microsoft.com/mssql/server:2019-latest' && matrix.db != 'mcr.microsoft.com/mssql/server:2022-latest' && 'mcr.microsoft.com/mssql/server:2017-latest' || matrix.db }} + image: ${{ matrix.db != 'mcr.microsoft.com/mssql/server:2017-latest' && matrix.db != 'mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04' && matrix.db != 'mcr.microsoft.com/mssql/server:2022-CU13-ubuntu-22.04' && 'mcr.microsoft.com/mssql/server:2017-latest' || matrix.db }} env: SA_PASSWORD: "Pssw0rd_12" ACCEPT_EULA: "y" @@ -414,7 +414,7 @@ jobs: env: MATRIX_DB: ${{ matrix.db }} run: | - if [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2017-latest' ] || [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2019-latest' ] || [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2022-latest' ] + if [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2017-latest' ] || [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04' ] || [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2022-CU13-ubuntu-22.04' ] then db='mssql' else diff --git a/adm/style/manage_pages.html b/adm/style/manage_pages.html index fd8846d..bb15ac2 100644 --- a/adm/style/manage_pages.html +++ b/adm/style/manage_pages.html @@ -110,7 +110,7 @@

{{ lang('WARNING') }}


{{ lang('ACP_PAGES_FORM_ICON_FONT_EXPLAIN', 'https://fontawesome.com/v6/search?o=r&m=free') }}
-
{{ Icon('font', PAGES_ICON_FONT, '', true, 'acp-icon') }}
+
{{ Icon('font', PAGES_ICON_FONT ? PAGES_ICON_FONT : 'file-lines', '', true, 'acp-icon') }}

{{ lang('ACP_PAGES_FORM_DISPLAY_EXPLAIN') }}
diff --git a/adm/style/scripts.js b/adm/style/scripts.js index 6d33278..d42a5b4 100644 --- a/adm/style/scripts.js +++ b/adm/style/scripts.js @@ -43,12 +43,10 @@ document.addEventListener('DOMContentLoaded', function() { } // Page Icon Previews - const updateClasses = (element, newClass) => { - - const classesToKeep = ['o-icon', 'o-icon-font', 'fa-fw', 'fas', 'acp-icon']; + const updateIconClass = (element, newClass) => { element.classList.forEach(className => { - if (!classesToKeep.includes(className)) { + if (className.startsWith('fa-') && className !== 'fa-fw') { element.classList.remove(className); } }); @@ -59,11 +57,11 @@ document.addEventListener('DOMContentLoaded', function() { const pageIconFont = document.getElementById('page_icon_font'); pageIconFont.addEventListener('keyup', function() { - updateClasses(this.nextElementSibling, this.value); + updateIconClass(this.nextElementSibling, this.value); }); pageIconFont.addEventListener('blur', function() { - updateClasses(this.nextElementSibling, this.value); + updateIconClass(this.nextElementSibling, this.value); }); });