1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-29 10:38:08 +01:00

13553 Commits

Author SHA1 Message Date
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
Nick Liu
c68604b971
Don't assume an empty table in e_db_abstractTest::testIsEmpty() 2021-04-13 15:03:36 -05:00
Nick Liu
99aa39a8e5
e107_tests: Removed usages of var_dump() 2021-04-13 15:03:36 -05:00
Cameron
b06e0e16fb Fixes #4484 - Modification of extended field of type EUF_ADDON causes corrupted data. 2021-04-13 11:28:25 -07:00
Cameron
7e6c077462 HybridAuth PHP5.6 compatibility patch. 2021-04-12 14:32:46 -07:00
Cameron
ee464286e0 BC Fix for contact LANs. 2021-04-12 14:31:27 -07:00
Cameron
8f7ab86413 Fixes #4486 - Invalid attributes not being fully filtered. 2021-04-12 11:13:37 -07:00
Cameron
444d8d6dc0 Issue #4486 - iframe accepted attributes updated 2021-04-12 11:01:58 -07:00
Cameron
096bfb2dc4 Removed unused package. 2021-04-12 10:37:15 -07:00
Cameron
9e091aedf4 Added new hybridauth providers. (Apple, Pinterest etc) 2021-04-12 10:32:24 -07:00
Cameron
826b777174 Vendor packages update. 2021-04-12 10:00:18 -07:00
Cameron
2862e18db9 Issue #4471 2021-04-06 18:41:15 -07:00
Cameron
920a881898 Issue #2898 - comment btn-sm class missing. 2021-04-06 12:14:40 -07:00
Cameron
240c088eff Issue #4478 - Fixes decorate_download_location() and check_download_limits() 'missing function' errors. 2021-04-06 10:40:58 -07:00
Cameron
6d0810af0d Fixes #4468 - quick debugging of json data using type: 'text' and hidden() field fix. 2021-03-31 15:14:58 -07:00
Cameron
5ed2440272 Issue #4473 - some merged code from Deltik 2021-03-31 13:04:20 -07:00
Cameron
8ff427cfc4 #Issue #4473 - some merged code. 2021-03-31 12:35:26 -07:00
Cameron
90ba858059 Added HTTP 503 header to sitedown.php and additional bot to robots list. 2021-03-31 12:14:18 -07:00
Cameron
2904f1e792 All Unit tests passing locally. 2021-03-31 12:11:23 -07:00
Cameron
05df416dbd Bootstrap 5 tweaks 2021-03-29 17:52:19 -07:00
Cameron
0876e0d43b Contact LANs updated to v2 specifications. BC fix included. 2021-03-29 17:50:51 -07:00
Cameron
dbefbe4630 Removed legacy contact info default. 2021-03-29 16:27:32 -07:00
Cameron
d7ef419553 Fix for social icons not displaying on maintenance 'site down' page. 2021-03-29 16:19:12 -07:00
Cameron
b7bb4cd3d2 Fixes #4470 Incorrect ajax output in theme manager. 2021-03-29 12:16:12 -07:00
Cameron
9053e6170f Fixes #4465 Some nested comments were not displaying. The number of DB queries when nested comments is active has now been dramatically reduced. Comments unit test added. 2021-03-25 13:52:05 -07:00
Cameron
56d4855192 Fixes #4464 - Updated comment render() example to match functionality. 2021-03-25 11:23:47 -07:00
Cameron
87521f330f Issue #4458 NULL value example added to blank plugin's admin-ui. 2021-03-23 11:05:04 -07:00
Cameron
283b9340b5 Fixes #4459 $HEADER and $FOOTER within a class/method when old themes in use. Disable BS5 in admin area 2021-03-23 10:17:22 -07:00
Moc
2c8ed5b80c
Fix PHP fatal error
Occurred when performing a v1 to v2 upgrade
2021-03-22 21:27:52 +01:00
Moc
0057d24ede
Fix upgrade routine
Was broken in 402d1f4126 (addslashes was default with WriteArray())
2021-03-22 21:27:22 +01:00
Moc
cdc61c90ee
Forum update fixes (duplicate SEF & logging) 2021-03-22 20:31:07 +01:00
Cameron
79ded794b1 Initial Bootstrap 5 theme added. 2021-03-22 11:43:13 -07:00
Cameron
c33b91ee5c Issue #4368 Fixed hardcoded string for 'related' content. Now uses tablerender(). Shortcode processing of {---CAPTION---} added. 2021-03-22 11:26:51 -07:00
Cameron
21f8fdcbf6 Fixes #2392 - Theme-Manager > Tools > Create (ie. theme-copy tool) updated to work with libraries, layouts, prefs etc. 2021-03-21 20:15:03 -07:00
Cameron
ad946e6a04
Merge pull request #4457 from Serios/patch-16
Fixing an issue with gallery prettyPhoto plugin
2021-03-21 17:55:53 -07:00
Cameron
307a8208c7
Merge pull request #4456 from Serios/patch-15
Fixing an issue with multilanguage values in Theme preferences
2021-03-21 17:54:19 -07:00
Serios
d17eeab43c
Fixing an issue with gallery prettyPhoto plugin
.size() function was deprecated as of jQuery 1.8. And removed in jQuery 3.0. More information [here](https://api.jquery.com/size/)

Using it, is causing prettyPhoto not to work, with newer versions of  jQuery. It must be replaced with .length property
2021-03-20 10:31:18 +02:00
Serios
f52f2352ad
Fixing an issue with multilanguage values in Theme preferences
When theme pref field have multilanguage enabled, values for the field are overwritten by last edited language. More detailed description about this behavior is given in #4455
2021-03-19 12:14:16 +02:00
Cameron
b3372acf9c
Merge pull request #4451 from yesszus/patch-2
Update LANs  e107_admin/links.php
2021-03-18 11:42:23 -07:00
Erdei Gábor
36ebe449a7
Update links.php 2021-03-17 23:44:32 +01:00
Cameron
dc483708a7 Issue #4299 PHP8 compatibility. 2021-03-17 14:18:45 -07:00
Moc
b2cf6c07b3
#4452 - Add e_print addon code and check 2021-03-17 19:42:21 +01:00
Cameron
07faad666a Issue #2726, Issue #4452 - Added new e_print.php addon which uses v2.x standards. 2021-03-17 11:22:25 -07:00
Erdei Gábor
bd2038eb13
Update lan_links.php 2021-03-17 02:16:20 +01:00
Erdei Gábor
02e4d3379a
Update links.php 2021-03-17 02:14:04 +01:00
Erdei Gábor
63c56cbcb7
Update links.php 2021-03-17 01:53:51 +01:00