Cameron
e0d988aaeb
Issue #3524 XML import/export array issue.
2018-11-15 14:20:08 -08:00
Cameron
747776b66a
Prevent duplicate delete confirmation
2018-11-14 13:03:14 -08:00
Cameron
99772ae134
TinyMce parser tests for backward compatibility with BBcodes and plain text.
2018-11-13 13:32:26 -08:00
Cameron
005e05ee58
BC fix for bbcode -> wysiwyg.
2018-11-13 13:31:27 -08:00
Deltik
48654804bd
e_parse::parseTemplate() behavior clarification
...
New tests cover the behavior described in
https://github.com/e107inc/e107/issues/3547
2018-11-09 16:52:37 -06:00
Cameron
5d19d0a70f
_blank theme tweak
2018-11-09 14:33:23 -08:00
Cameron
bc996f7721
Fixes #3543 - YouTube video insertion into text area.
2018-11-09 14:20:58 -08:00
Deltik
eec2feb8b3
pluginsTest::testBanner() e_parse cases
...
See https://github.com/e107inc/e107/issues/3547 for details.
2018-11-08 21:05:24 -06:00
Cameron
cc60ce0d68
Possible fix for cron descriptions containing single quotes not appearing in database correctly.
2018-11-07 16:32:19 -08:00
Cameron
5073dcd3bb
Fixes #3520 thump.php failing when custom site_path in use.
2018-11-07 16:31:08 -08:00
Cameron
12dece2cc6
Admin-UI: Allow searching of type=method fields with integer data.
2018-11-03 15:15:31 -07:00
Cameron
e9e9f6288e
Added placeholder test for Media-Manager upload processing.
2018-11-03 12:59:06 -07:00
Cameron
d3cdcfe3f9
Moved upload code to media class.
2018-11-03 12:56:42 -07:00
Cameron
46c07cd416
Merge pull request #3539 from Deltik/fix-3538
...
Better names for eShims classes
2018-11-03 11:27:29 -07:00
Nick Liu
9cf215a0be
Better names for eShims classes
...
* \e107\Shims\All → \e107\Shims\AllShims
* \e107\Shims\Internal → \e107\Shims\InternalShims
* \e107\Shims\InternalShims → \e107\Shims\InternalShimsTrait
Fixes : #3538
2018-11-03 09:24:05 -05:00
Nick Liu
9e0d603609
100% test coverage for \e107\Shims
...
New test forces a failover of the `readfile()` internal function to
test the failover functionality of \e107\Shims\Internal::readfile()
2018-11-03 09:11:42 -05:00
Cameron
5997a7905b
Merge pull request #3537 from Deltik/fix-3536
...
Ensure plugin files are registered in database before installing any plugin
2018-11-02 11:30:14 -07:00
Nick Liu
7c2b4f8f25
Reload e_shortcode_parser for pluginsTest::testBanner()
...
e_shortcode_parser normally doesn't need reloading in an e107
installation because installing the "banner" plugin and parsing
shortcodes have always been two separate script calls (page loads).
It would slow down the e107 core to add an e_shortcode_parser reloader
after installing a plugin when the page would later exit without
parsing any shortcodes.
2018-11-02 12:49:24 -05:00
Nick Liu
7b259aec6f
Ensure plugin files are registered in DB before install
...
e107::getPlug()->clearCache() rescans the plugin folder for plugins and
adds them to the database.
Fixes : #3536
2018-11-02 10:07:59 -05:00
Nick Liu
f27636ff14
Fixed race condition in e_parseTest::testToForm()
...
Other tests have been meddling with the e107::wysiwyg() global state
e_parseTest::testToForm() now considers two outcomes of the
e107::wysiwyg() state.
2018-11-01 19:31:04 -05:00
Nick Liu
556aea02ea
Removed Internet dependency from pluginsTest::testRemotePlugin()
2018-11-01 19:12:11 -05:00
Nick Liu
b9f794b1a9
Disregard race condition by increasing tolerance in e107pluginTest
...
e107pluginTest::testXmlSiteLinks() ignores the primary key and model
order because another test could have inserted records before this test.
2018-11-01 19:09:48 -05:00
Nick Liu
aa458ee7d3
Explicit timezone settings in e_DateTest and e_formTest
2018-11-01 18:49:20 -05:00
Nick Liu
9e6bb14641
Removed Internet dependency from e_marketplaceTest
2018-11-01 18:48:06 -05:00
Nick Liu
da8a2015aa
Consistency fix for e_formTest
2018-11-01 14:33:43 -05:00
Cameron
4d0c0601d0
Merge pull request #3534 from Deltik/fix-3533
...
Sorting for "templates" type e_form::renderElement()
2018-11-01 09:49:07 -07:00
Cameron
1f5774b8e5
Merge pull request #3532 from Deltik/fix-3531
...
Fixed e_plugin::buildAddonPrefLists() statefulness bug
2018-11-01 09:48:24 -07:00
Nick Liu
003cf4ff09
Sorting for "templates" type e_form::renderElement()
...
The output from e107::getFile()->get_files() is now sorted in
e_form::renderElement() for consistent output.
Fixes : #3533
2018-11-01 11:11:25 -05:00
Nick Liu
ff7f182c8c
Fixed e_plugin::buildAddonPrefLists() stateful bug
...
Prevents e_plugin::buildAddonPrefLists() from wiping out the variable
that is tracking the currently loaded plugin by moving the currently
loaded plugin to the end of the iterated array
Fixes : #3531
Fixes : e107inc/e107-test#9
2018-11-01 09:59:17 -05:00
Nick Liu
1fc01e08f0
Fixed rollback bug in GitPreparer
...
Added a guard to GitPreparer::unsetVcsInProgress() to prevent doing a
`git reset` when there are no test locks present.
Otherwise, the uncommitted changes in the app will be removed by the
shutdown feature introduced in 952c6e5890
.
2018-11-01 09:32:43 -05:00
Nick Liu
93d8b7f0c5
General repo cleanup
...
Removed unused includes/bootstrap.php
Made a new e107 sample database dump
2018-11-01 07:20:11 -05:00
Nick Liu
952c6e5890
PriorityCallbacks: Execute callbacks before Codeception's
...
GitPreparer now registers a "priority" register_shutdown_function
callback in order to clean up in case of a fatal error.
2018-11-01 06:57:38 -05:00
Cameron
46efef4d4d
Merge pull request #3529 from Deltik/fix-3528
...
Namespaced class support! Also: readlink() has been "polyfilled"
2018-10-31 16:17:04 -07:00
Nick Liu
ded595d704
Renamed e_shims to eShims
...
To follow @myovchev's convention like eHelper
Per @CaMer0n
2018-10-31 12:32:58 -05:00
Nick Liu
6f416523c3
Renamed e_shims to eShims
...
To follow @myovchev's convention like eHelper
Per @CaMer0n
2018-10-31 12:27:45 -05:00
Nick Liu
b2de51dd1b
Split e_shims into correct files for autoloading
2018-10-31 09:37:07 -05:00
Nick Liu
4c6828be93
Moved autoload responsibility to e107_class.php
...
Instead of every independently operating client code figuring out its
own autoload policies, the e107 class file e107_class.php now takes care
of autoloading.
Any client that uses the e107 class will automatically benefit from
autoloading for e107.
This cuts down on potential code duplication, and e107::getSingleton()
is no longer tied to trying to figure out the class path.
This commit REMOVES support for the unused constant flag
E107_DISABLE_AUTOLOAD introduced in
bdef2707b4
and the unused autoload code
introduced in f4cee92890
.
2018-10-31 08:22:14 -05:00
Nick Liu
f145622207
Added tests for e_shims
2018-10-31 08:06:42 -05:00
Nick Liu
ee1a5b1278
Replaced all direct readfile()s with shim
...
Fixes : #3528
2018-10-31 08:04:59 -05:00
Nick Liu
60056deb93
Support for namespaced classes; added e_shims
...
e_shims is an e107 v2-compatible class for the first namespaced core
class, e107\Shims\All.
e107\Shims\All is built from the e107\Shims\InternalShims trait.
e107\Shims\InternalShims currently implements a resilient replacement
for the PHP internal readfile(), which is needed by issue #3528 .
As for how the new namespaced classes are handled, the e107 class
(e107_handlers/e107_class.php) has an updated e107::autoload() which
detects namespaced classes and goes to e107::autoload_namespaced().
Namespaced classes handled by e107 are in the \e107 top-level namespace,
and all sub-levels match directory paths under e_HANDLER.
2018-10-31 07:27:38 -05:00
Cameron
55b4cf4d03
Issue #3519 Extra check for class name.
2018-10-29 12:57:35 -07:00
Cameron
ffaab917c2
Issue #3512 Prevent duplicate SEF on forum.
2018-10-26 12:16:26 -07:00
Cameron
9af88374c2
Media-Manager Fix for YouTube preview after selection.
2018-10-23 12:54:19 -07:00
Cameron
1017f32d68
Issue #3509 Quick fix. Needs further refinement to avoid false positives.
2018-10-19 13:50:27 -07:00
Cameron
a9ae32b9f4
Issue #3511 - removed closing PHP tag.
2018-10-19 12:50:37 -07:00
Tijn Kuyper
c3e4cb07c3
Fixes #3511 - second attempt, removal of empty line after closing tags
2018-10-19 15:00:37 +02:00
Tijn Kuyper
94a6d24491
Fixes 3511 - Removed empty line after php closing tag
2018-10-19 14:41:52 +02:00
Cameron
69eb95c63c
Admin-ui: modalCaption option added for Edit button when target = 'modal'
2018-10-18 12:46:29 -07:00
Tijn Kuyper
0f272841bf
Merge pull request #3510 from Jimmi08/patch-8
...
display correct version in message - Optimise PHP version check for G…
2018-10-18 19:53:23 +02:00
Jimako
1f040b3fbc
display correct version in message - Optimise PHP version check for Github sync
...
related: 94adbd06cc
2018-10-18 19:47:56 +02:00