1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01:00

13398 Commits

Author SHA1 Message Date
Cameron
d2411404c4 Issue #4299 PHP8 Fix 2021-06-14 17:05:57 -07:00
Cameron
5652fd2bd9
Merge pull request #4515 from Deltik/fix/4512
#4512: faqs_shortcodes::sc_faq_count(): Return blank string instead of 0
2021-06-14 16:55:10 -07:00
Cameron
0deb235ee7 Unit test fixes. 2021-06-14 16:51:43 -07:00
Cameron
a1e7d29661 Optional {NEWS_PAGINATION} shortcode added. 2021-06-14 14:42:17 -07:00
Cameron
4e75903292 Fix for empty image. 2021-06-13 12:59:01 -07:00
Cameron
f2966468ea Added missing breadcrumb item (page-title) when viewing a page for consistency with other breadcrumbs like News etc. 2021-06-12 16:53:59 -07:00
Cameron
aa6e449aee New shortcode added on News view page: {NEWS_AUTHOR_REALNAME}
Tagcloud menu can now be sorted via shortcode parms. eg. {MENU: path=tagcloud&order=tag,asc&limit=20}
Animate.css library loading example added to bootstrap5/theme.xml
2021-06-12 16:18:51 -07:00
Nick Liu
7cef4264c6
#4512: faqs_shortcodes::sc_faq_count(): Return blank string instead of 0
Previously incorrect null coalesce returns 0 instead of a blank string

Fixes: #4512
2021-06-07 21:52:36 -05:00
Cameron
f561c5920b Bootstrap updated to v5.0.1 2021-06-07 17:07:02 -07:00
Cameron
2f9d81d7fc Prevent column pref conflict. 2021-06-07 11:43:47 -07:00
Cameron
157a35a5e7 Custom-fields raw mode was missing for types textarea and bbarea. 2021-06-07 08:43:41 -07:00
Cameron
a6e287d680 {---BREADCRUMB---} processing is now supported. (see bootstrap5/theme_shortcodes.php for an example) 2021-06-04 12:27:25 -07:00
Cameron
1ae7e3a2ed Bootstrap5 fix for video ratio. 2021-06-03 13:45:07 -07:00
Cameron
07f4e53932 Fix fatal error in PHP8 that occurred when building a plugin without database tables. Developer mode alert now uses the {ALERTS} shortcode for greater control of placement. 2021-06-03 09:56:00 -07:00
Cameron
83c52c8bd8 Use e107::route() to safely get e_ROUTE value. 2021-06-01 16:36:09 -07:00
Cameron
3a71366954 Added {THEME} shortcode (path) to core shortcodes. 2021-06-01 16:07:38 -07:00
Cameron
8023a2b9f6 Extra header information added to debug info. 2021-06-01 15:14:33 -07:00
Nick Liu
2a94814e8a
Fix PHP warning: Array to string conversion in db_debug_class.php:770
```
Array to string conversion, Line 770 of /home/deltik/public_html/e107_handlers/db_debug_class.php
```
2021-05-18 16:49:32 -05:00
Nick Liu
1874d3d936
Fix PHP warning: Undefined array key "" in shortcode_handler.php:1362
```
Undefined array key "", Line 1362 of /home/deltik/public_html/e107_handlers/shortcode_handler.php
```
2021-05-18 16:48:51 -05:00
Cameron
8d29f97bd2 Sort by primary id when exporting tables. Alert-box styling fix on modern-light admin theme. 2021-05-11 13:26:27 -07:00
Cameron
6674beaf82 Added a button to allow closing of "Developer Mode" alert message. Fixed default button styling of some news buttons under Bootstrap 5. 2021-05-08 12:39:17 -07:00
Cameron
666459d060 Debug info text color fix. 2021-05-08 12:20:03 -07:00
Cameron
c11bd224f8 Prevent possible memory overload in Database > Export. Corrected {ALERTS} debug info when using theme.html. 2021-05-08 11:53:39 -07:00
Cameron
80f59e2493 Upgraded Bootstrap 5 to final version. (no more beta) 2021-05-07 12:07:38 -07:00
Cameron
da3c207fa3 Removed auto-inserting of {WMESSAGE} when theme.html is detected. Improved theme layout debug message. 2021-05-07 10:57:05 -07:00
Tijn Kuyper
4c56593f81
Merge pull request #4234 from yesszus/patch-1
Small corrections
2021-04-25 16:02:00 +02:00
Moc
db9883f36d
Fixes #4492 - Disable autocomplete on captcha (secure image) 2021-04-25 16:00:03 +02:00
Moc
ee346eb06c
#4492 - Prevent autofill / autocomplete on captcha 2021-04-24 11:59:26 +02:00
Nick Liu
cdde5ef86b
db_table_adminTest::testGet_current_table(): Alias utf8mb3 => utf8
MySQL 8.0 compatibility

Ideally, we'd be using utf8mb4 everywhere, but alas...
2021-04-22 20:57:28 -05:00
Cameron
7ff45abe36 Issue #4489 - make sure breadcrumb only displays when 'default' or 'main' styles are rendered. 2021-04-21 16:51:40 -07:00
Cameron
e5ff5f53c8 Issue #550 - Expanded filetypes.xml display in admin preferences area to include Admin and Main admin perms. Additional defaults for admin and mainadmin added to filetypes.xml during installation. 2021-04-21 16:48:04 -07:00
Cameron
098660d38a Issue #550 - filetypes.xml now used by media-manager. 2021-04-21 11:51:53 -07:00
Cameron
4034d4ab0c Issue #4489 - Render comments code example added. 2021-04-20 13:44:14 -07:00
Cameron
c57b029877 Fixes #4493 - USER_WIDTH causing PHP8 error. 2021-04-20 13:32:58 -07:00
Nick Liu
cad29d50cf
test-unit: Use older git/curl/libcurl3-gnutls
buster-backports has a libcurl3-gnutls=7.74.0-1.2~bpo10+1 regression
that causes this error:

```
root@86c99eb1984b:/__w/e107/e107# GIT_CURL_VERBOSE=1 GIT_TRACE=1 /usr/bin/git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +c0385ad7ac0b226971fd875db2b1f36ea119164c:refs/remotes/origin/master
20:25:00.030675 git.c:444               trace: built-in: git fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +c0385ad7ac0b226971fd875db2b1f36ea119164c:refs/remotes/origin/master
20:25:00.030913 run-command.c:663       trace: run_command: GIT_DIR=.git git remote-https origin https://github.com/e107inc/e107
20:25:00.032174 git.c:729               trace: exec: git-remote-https origin https://github.com/e107inc/e107
20:25:00.032264 run-command.c:663       trace: run_command: git-remote-https origin https://github.com/e107inc/e107
20:25:00.037725 http.c:756              == Info: Couldn't find host github.com in the .netrc file; using defaults
20:25:00.086739 http.c:756              == Info:   Trying 140.82.112.3:443...
20:25:00.138406 http.c:756              == Info: Connected to github.com (140.82.112.3) port 443 (#0)
20:25:00.161613 http.c:756              == Info: found 411 certificates in /etc/ssl/certs
20:25:00.161658 http.c:756              == Info: ALPN, offering h2
20:25:00.161663 http.c:756              == Info: ALPN, offering http/1.1
20:25:00.211239 http.c:756              == Info: SSL connection using TLS1.3 / ECDHE_RSA_AES_128_GCM_SHA256
20:25:00.212011 http.c:756              == Info:         server certificate verification OK
20:25:00.212024 http.c:756              == Info:         server certificate status verification SKIPPED
20:25:00.212136 http.c:756              == Info:         common name: github.com (matched)
20:25:00.212149 http.c:756              == Info:         server certificate expiration date OK
20:25:00.212156 http.c:756              == Info:         server certificate activation date OK
20:25:00.212172 http.c:756              == Info:         certificate public key: EC/ECDSA
20:25:00.212179 http.c:756              == Info:         certificate version: #3
20:25:00.212218 http.c:756              == Info:         subject: C=US,ST=California,L=San Francisco,O=GitHub\, Inc.,CN=github.com
20:25:00.212232 http.c:756              == Info:         start date: Thu, 25 Mar 2021 00:00:00 GMT
20:25:00.212243 http.c:756              == Info:         expire date: Wed, 30 Mar 2022 23:59:59 GMT
20:25:00.212265 http.c:756              == Info:         issuer: C=US,O=DigiCert\, Inc.,CN=DigiCert High Assurance TLS Hybrid ECC SHA256 2020 CA1
20:25:00.212282 http.c:756              == Info: ALPN, server accepted to use h2
20:25:00.212343 http.c:756              == Info: Using HTTP2, server supports multi-use
20:25:00.212352 http.c:756              == Info: Connection state changed (HTTP/2 confirmed)
20:25:00.212361 http.c:756              == Info: Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
20:25:00.212372 http.c:756              == Info: Failed sending HTTP2 data
20:25:00.212382 http.c:756              == Info: Connection #0 to host github.com left intact
fatal: unable to access 'https://github.com/e107inc/e107/': Failed sending HTTP2 data
```

Downgrading to libcurl3-gnutls=7.64.0-4+deb10u2 resolves the problem.
2021-04-19 16:15:06 -05:00
Moc
c0385ad7ac
Revert "Add some generic LAN to English.php"
This reverts commit 0584c1a35d86a466db19ca9055e2cc7f2fc8ed7a.
2021-04-19 20:19:38 +02:00
Moc
d32e87f875
Revert "Also add LAN_TAG and LAN_TAGS to lan_admin.php"
This reverts commit a951e66f352081be357532164d1e6178232a5f7c.
2021-04-19 20:19:11 +02:00
Moc
a951e66f35
Also add LAN_TAG and LAN_TAGS to lan_admin.php 2021-04-19 20:17:21 +02:00
Moc
0584c1a35d
Add some generic LAN to English.php 2021-04-19 20:13:27 +02:00
Moc
f16e2ad340
#4490 - Should fix autofill in usersettings (new password) 2021-04-19 19:29:33 +02:00
Moc
4ef740674c
Update placeholder image link
Apparently placehold.it has been replaced with placeholder.com
2021-04-17 14:04:52 +02:00
Nick Liu
dc3ac65a70
Fix implementation of e_front_model::sanitize()
Handles recursive data field validation now
2021-04-17 02:57:10 -05:00
Nick Liu
ce7f3b5d56
Add: e_parse::toFlatArray() and e_parse::fromFlatArray()
Utility functions to convert multi-dimensional arrays to slash-delimited
single-dimensional arrays and vice versa
2021-04-17 02:56:12 -05:00
Cameron
f6f63b680f
Merge pull request #4473 from Deltik/fix-tests
Fix failing tests since 2021-01-10
2021-04-16 13:46:52 -07:00
Nick Liu
bdc5c20df2
pluginsTest::testPluginScripts(): Standard sort file order 2021-04-16 15:46:14 -05:00
Cameron
51024a5e8e Fix PHP errors under some circumstances. 2021-04-16 13:43:26 -07:00
Nick Liu
d83c31fb8c
Stub e_date::computeLapse() in e_parse_shortcodeTest
Prevents this flaky error:

---------
1) e_parse_shortcodeTest: User shortcodes
 Test  tests/unit/e_parse_shortcodeTest.php:testUserShortcodes
{USER_DAYSREGGED} != sc_user_daysregged()
Failed asserting that two strings are equal.
- Expected | + Actual
@@ @@
-'3 years, 2 months, 1 day, 5 hours, 17 minutes, 16 seconds ago'
+'3 years, 2 months, 1 day, 5 hours, 17 minutes, 15 seconds ago'
#1  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:1591
#2  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:767
2021-04-13 15:12:39 -05:00
Nick Liu
687db04bcb
Revert "Removed failing test with no assertions"
This reverts commit 22e3f5383e5a62a3a8a1b6f7828c515402aa8123.
2021-04-13 15:03:37 -05:00
Nick Liu
7cfc79d335
Tests: Removed weird 17 rows threshold for clearing user_extended_struct
Should fix rare flaky
e107_user_extendedTest::testUserExtendedAllShortcode()
2021-04-13 15:03:37 -05:00
Nick Liu
e261e4fb2d
Fix undefined constants when e107Test::testGetCoreTemplate() runs first
---------
1) e_navigationTest: Admin links plugins
 Test  tests/unit/e_navigationTest.php:testAdminLinksPlugins

Error: ;1m  [Error] Undefined constant "E_16_PLUGMANAGER"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:882
#2  /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:528

---------
2) e_navigationTest: Admin links legacy
 Test  tests/unit/e_navigationTest.php:testAdminLinksLegacy

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:374

---------
3) e_formTest: Render value
 Test  tests/unit/e_formTest.php:testRenderValue

Error: ;1m  [Error] Undefined constant "ADMIN_TRUE_ICON"

#1  /__w/e107/e107/e107_tests/tests/unit/e_formTest.php:943

---------
4) scriptsTest: Admin scripts
 Test  tests/unit/scriptsTest.php:testAdminScripts

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_admin/includes/infopanel.php:110
#4  /__w/e107/e107/e107_admin/includes/flexpanel.php:66
#5  /__w/e107/e107/e107_admin/admin.php:63
#6  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:140
#7  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:27

---------
5) e_formTest: Render value inline
 Test  tests/unit/e_formTest.php:testRenderValueInline

Error: ;1m  [Error] Undefined constant "ADMIN_FALSE_ICON"

#1  /__w/e107/e107/e107_handlers/form_handler.php:5829
#2  /__w/e107/e107/e107_tests/tests/unit/e_formTest.php:1029

---------
6) e_navigationTest: Admin links sub
 Test  tests/unit/e_navigationTest.php:testAdminLinksSub

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_tests/tests/unit/e_navigationTest.php:418

---------
7) e_parse_shortcodeTest: Admin shortcodes
 Test  tests/unit/e_parse_shortcodeTest.php:testAdminShortcodes

Error: ;1m  [Error] Undefined constant "E_16_NEWS"

#1  /__w/e107/e107/e107_core/shortcodes/batch/admin_shortcodes.php:518
#2  /__w/e107/e107/e107_core/shortcodes/batch/admin_shortcodes.php:602
#3  /__w/e107/e107/e107_handlers/shortcode_handler.php:1130
#4  e_parse_shortcode->doCode
#5  /__w/e107/e107/e107_handlers/shortcode_handler.php:996
#6  /__w/e107/e107/e107_handlers/e_parse_class.php:823
#7  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:1588
#8  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:220

---------
8) scriptsTest: Admin includes
 Test  tests/unit/scriptsTest.php:testAdminIncludes

Error: ;1m  [Error] Undefined constant "E_32_MAIN"

#1  /__w/e107/e107/e107_handlers/sitelinks_class.php:735
#2  /__w/e107/e107/e107_handlers/sitelinks_class.php:887
#3  /__w/e107/e107/e107_admin/includes/categories.php:22
#4  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:140
#5  /__w/e107/e107/e107_tests/tests/unit/scriptsTest.php:36

--

There was 1 failure:

---------
1) e107Test: Load admin icons
 Test  tests/unit/e107Test.php:testLoadAdminIcons
E_16_FACEBOOK is missing from admin_icons_template
#1  /__w/e107/e107/e107_tests/tests/unit/e107Test.php:1054
2021-04-13 15:03:36 -05:00