Andy Miller
51623ee0da
Added custom_base test
2024-05-08 12:35:16 +01:00
Andy Miller
ee8d783d05
better support for external urls in Utils::url()
2024-04-20 15:42:42 +01:00
Andy Miller
0b16401a91
fix special-chars in titleize - fixes #732
2024-01-19 12:39:24 +00:00
Andy Miller
6df03063c8
remove test
2024-01-05 12:34:59 +00:00
Andy Miller
e5990f431d
Revert "Added 'outdated' option to scheduler command ( #3771 )"
...
This reverts commit a71403f158 .
# Conflicts:
# tests/unit/Grav/Common/Scheduler/SchedulerTest.php
2024-01-05 12:31:53 +00:00
Andy Miller
b3d55ca81a
remove a debug
2024-01-05 12:26:08 +00:00
maelanleborgne
a71403f158
Added 'outdated' option to scheduler command ( #3771 )
2024-01-05 11:46:14 +00:00
Jeremy Angele
80ce87e4a9
Update dangerous extensions ( #3756 )
...
Thanks for this!
2023-10-24 10:20:22 +01:00
Andy Miller
93755c7329
fix UtilsTest for PHPUnit 10
2023-02-19 13:48:13 -07:00
Andy Miller
0abde01442
better fix
2022-03-05 09:22:12 -07:00
Andy Miller
03f71fa49d
rolled back but fixed the Utils::url() functionality
2022-03-04 15:37:03 -07:00
Andy Miller
b80fcca0cf
fixes for Utils::url()
2022-03-03 12:35:17 -07:00
Andy Miller
d90b28a399
fix jquery in tests
2021-06-15 10:20:57 -06:00
Djamil Legato
acf8724402
Added tests for new params support in collections ( #3358 )
2021-06-14 16:03:22 -07:00
Matias Griese
5efe447861
Fixed The "Grav/Common/Twig/TwigExtension" extension is not enabled when using markdown twig tag [ #3317 ]
2021-04-19 10:20:26 +03:00
pamtbaau
e02d298ff4
Add option images.defaults.size to set default height/width ( #3272 )
...
* Add option images.defaults.size to set default height/width
- Add option to config/system.yaml
- Add option to blueprints/config/system.yaml
- Add ImageSizeTrait.php
- Add ImageSizeTrait to ImageMedium.php
- Add Unit tests
* moved width/height to rendering phase
* Add test: height/width should be of resized image.
* Added optional apsect-ratio variable
* more improvements
* Added aspectRatio and retinaScale image functions
* remove use for old trait
* reset the CLS variables after calling reset on the image
Co-authored-by: Andy Miller <rhuk@mac.com>
2021-04-05 11:21:03 -06:00
Matias Griese
38b1556ee0
Fix unit test #2184
2021-03-31 21:29:59 +03:00
Matias Griese
644a54e441
Added Utils::getPathFromToken() method which works also with Flex Objects
2021-03-17 21:54:26 +02:00
pamtbaau
898759b3b9
Add unit tests for system.images.defaults.loading
2021-03-10 14:58:58 +02:00
Pierre Joye
6c3c068485
add test for multiple parts using folder
2021-02-02 07:27:54 +07:00
Pierre Joye
b20838531c
Resolved merge conflict
2021-02-01 22:43:28 +07:00
Matias Griese
a8a960d10b
Updated unit tests
2021-02-01 11:14:53 +02:00
Pierre Joye
10be5d5a7c
fix text if language is found and is part as enabled languages
2021-01-31 07:14:33 +07:00
Pierre Joye
711d7b122d
Add fixture for translatedLanguages
2021-01-30 21:22:39 +07:00
Pierre Joye
ea758e9dca
Add test for this translatedLanguages
2021-01-30 20:50:20 +07:00
Matias Griese
0948e9db9d
Fixed Filesystem::normalize() with dot-dot paths
2020-12-23 13:46:49 +02:00
Matias Griese
f25ea8f056
Updated unit tests
2020-12-04 20:01:28 +02:00
Stephan Strate
ae6f0b5505
Check exact extension in checkFilename utility ( #3061 )
...
* Fix uploads_dangerous_extensions checking (#3060 )
* Remove redundant prefixing of `.` to extension (#3060 )
2020-11-17 13:07:33 +02:00
Ricardo Verdugo
b94c4e775a
added optional options to noprocess ( #2954 )
...
* added optional options to noprocess
* fix minor bug with skip and better naming
* Added tests
Signed-off-by: Andy Miller <rhuk@mac.com>
* Added some tests
Signed-off-by: Andy Miller <rhuk@mac.com>
Co-authored-by: Ricardo <ricardo@urbansquid.london>
Co-authored-by: Andy Miller <rhuk@mac.com>
2020-07-07 12:27:32 -06:00
Matias Griese
5f0380f547
Fixed unit test
2020-05-05 19:04:56 +03:00
Matias Griese
028bbf08c6
Grav 1.7 edition: Fixed validation: strict not working in blueprints [ #1273 ]
2020-02-18 13:09:14 +02:00
Matias Griese
67dd5f256d
Fixed unit test for parsedown link &
2020-01-30 09:15:26 +02:00
Matias Griese
2c3ced3fba
Merge branch 'develop' of github.com:getgrav/grav into 1.7
2020-01-30 09:11:53 +02:00
Matias Griese
a592f6fe0b
Fixed unit test for Uri::currentPage(): it only returns integers now
2020-01-30 09:11:19 +02:00
Matias Griese
33790dbb33
Merge branch 'develop' of github.com:getgrav/grav into 1.7
...
Conflicts:
system/src/Grav/Common/Data/BlueprintSchema.php
system/src/Grav/Common/Data/Validation.php
system/src/Grav/Framework/Session/Session.php
2020-01-14 15:11:50 +02:00
Matias Griese
8714aa9202
Fixed validation: strict not working in blueprints [ #1273 ]
2020-01-14 14:46:19 +02:00
Matias Griese
c4ce2d1648
Misc minor code quality fixes
2019-10-24 11:26:04 +03:00
Matias Griese
913efdbd6a
Revert multiple changes as many of those break Grav functionality [ #2699 ]
2019-10-22 15:20:35 +03:00
Matias Griese
9c123f7d3d
Merge remote-tracking branch 'rlerdorf/1.7' into 1.7
2019-10-22 12:35:27 +03:00
Andy Miller
2b00e93f22
Merge branch 'develop' into 1.7
...
# Conflicts:
# composer.json
2019-10-17 10:02:36 -06:00
Jérôme Nadaud
ab6b82eaaa
Fix cache image generation when using cropresize ( #2639 )
2019-10-17 05:56:46 -06:00
Rasmus Lerdorf
32a9acc62e
Add a .phan config file and stubs for Phan static analysis
...
I fixed some small inconsistencies here and there. There are still
a little over 200 to go. This time against the 1.7 branch.
To try it, checkout this PR and run:
composer require phan/phan
It doesn't have to be in the Grav tree. You can install it anywhere.
Then from the top-level Grav dir:
/vendor/bin/phan -p
You can see the ones that are left to address here:
https://gist.github.com/69eac9b37ced1cadc08ed4be0ee84f40
Also, and the main reason I added it, was to get some nice
dependency graphs from Phan to help me understand the Grav code. Some
examples:
http://pdep.lerdorf.com/?mode=class&node=\Grav\Common\File\CompiledFile&d=3
http://pdep.lerdorf.com/?mode=class&node=\Grav\Common\Filesystem\Folder&d=1
http://pdep.lerdorf.com/?mode=class&node=\Doctrine\Common\Cache\Cache&d=2
http://pdep.lerdorf.com/?mode=class&node=\RocketTheme\Toolbox\ArrayTraits\Export&d=1
Move the slider to change the number of dependency levels shown.
2019-10-16 10:38:08 -07:00
Patric Johansson
4bba284bf5
Update Core to follow PSR-2 standard
2019-10-15 13:33:48 +03:00
Matias Griese
90c2079529
Fixed wrong Pages::dispatch() calls (with redirect) when we really meant to call Pages::find()
2019-09-13 22:39:46 +03:00
Matias Griese
22acffac5c
Update Pages unit tests
2019-08-22 15:16:27 +03:00
Andy Miller
3ac785b9ce
Fix for changed location of phpdebug CSS
2019-06-28 14:47:13 -06:00
Matias Griese
69b39b4b21
Fixed multiple url() issues with streams
...
* Fixed `url()` returning wrong path if using stream with grav root path in it, eg: `user-data://shop` when Grav is in `/shop`
* Fixed `url()` not returning a path to non-existing file (`user-data://shop` => `/user/data/shop`) if it is set to fail gracefully
* Fixed `url()` returning false on unknown streams, such as `ftp://domain.com`, they should be treated as external URL
2019-06-28 13:36:37 +03:00
Andy Miller
d227a82056
Fixed regresssion issue of Utils::Url() not returning false on failure #2524
2019-05-27 11:58:53 +03:00
Matias Griese
99d0c7cb3e
Generalized markdown classes so they can be used outside of Page scope with a custom Excerpts class instance
2019-05-17 14:48:12 +03:00
Andy Miller
d54387b281
Backwards compatiblity with old Uri::__toString() output
2019-04-15 19:21:14 -06:00