Jan Pešek
cc74b59637
feat( #46 ): get rid of (some) PHP deprecation warnings
...
- use issets, default local var values, better/newer language constructs
2023-08-18 18:17:39 +02:00
Koji Tanaka
1d1750ae8c
fix: PaginatorHelper::numbers() generates extra separator string in PHP 8.0+.
2023-01-30 21:28:56 +01:00
Koji Tanaka
3acfb1da49
fix: Relative time may not be cached if specified in CacheHelper duration
2023-01-22 14:24:47 +01:00
Koji Tanaka
94f73e75e6
fix: Checking with get_magic_quotes_gpc() is no longer necessary.
2023-01-11 22:45:29 +01:00
Koji Tanaka
7baab67d65
fix: Fixed error generation in MootoolsEngineHelper::drop()
...
Co-authored-by: Kenshin Okinaka <okinakak@yahoo.co.jp>
2023-01-11 22:45:29 +01:00
Koji Tanaka
fb5e694ef7
fix: The get_magic_quotes_gpc function was removed in PHP 8.0, so check before calling it.
2023-01-11 22:45:29 +01:00
Markus Bauer
a139699e7e
Include new "full_path" field in security hash as of PHP 8.1
2022-10-08 12:05:45 +02:00
Jeremy Ruten
e90e4716ec
Fix deprecated argument order in calls to implode()
2020-06-17 11:44:23 -06:00
Val Bancer
2d4f80bf66
Improve php doc block in HtmlHelper.php
2020-05-22 13:48:26 +02:00
Markus Podar
459ee900fe
php-7.4-compact: replace deprecated curly brace offset access
...
Per https://wiki.php.net/rfc/deprecate_curly_braces_array_access and https://www.php.net/manual/en/migration74.deprecated.php
> The array and string offset access syntax using curly braces is deprecated. Use $var[$idx] instead of $var{$idx}.
2020-03-20 21:10:58 +01:00
Mark Sch
b8cefad8c5
Merge pull request #13060 from hgsgtk/2.x-fix-phpdoc
...
fix phpdoc at HtmlHelper::link
2019-03-19 08:47:55 +01:00
Kazuki Higashiguchi
e472a85ab2
fix phpdoc at HtmlHelper::link
2019-03-19 12:03:33 +09:00
Joseph Zidell
6ed88922a5
Fixes docblock for View::set() ( #12837 )
...
* Fixes docblock for View::set()
2018-12-23 00:09:44 +04:00
Val Bancer
320cdf98ee
Add undocumented properties ( #12717 )
...
See https://book.cakephp.org/2.0/en/controllers/request-response.html#accessing-request-parameters and https://api.cakephp.org/2.10/source-class-UpgradeShell.html#345-403
* Initialize $params to null
* Document more magic properties, trigger deprecated notices
* Use $controller->request->params instead $controller->params
* Remove unused variable
* Improve documentation, add type checks.
* It seems like $this->uses can also be of type false; however, parameter
$array of array_unshift() does only seem to accept array.
* Declare undeclared property
* Add extra type checks
* Adjust type check
* Improve documentation, initiate uninitialized variables.
* Improve documentation, reset variable
2018-11-15 20:41:57 -05:00
Val Bancer
527b9fe640
Improve documentation
2018-10-22 10:11:01 +02:00
Val Bancer
d7b5cda0ea
Fix PHP 5.3 syntax
2018-09-12 18:14:24 +02:00
Joe
a4e71b3b40
Fixes:
...
* Issue with preg_match()
* Undefined variables
2018-08-21 14:46:58 -04:00
Jeremy Harris
2e75f12a4f
Fixed SessionHelper not handling stacked messages
2017-08-22 10:06:37 -05:00
mark_story
be534eacef
Fix hiddenField option not working for radio.
...
The hiddenField option was not working as documented for radio buttons.
Instead of using the provided value, the hidden input's value was
hardcoded to ''
Refs #11002
2017-08-08 22:02:07 -04:00
mark_story
aaa37fa809
Merge branch '2.next' of github.com:cakephp/cakephp into 2.next
2017-06-26 21:51:55 -04:00
mark_story
2032fef772
Merge branch '2.x' into 2.next
2017-06-26 21:51:41 -04:00
Mark Story
52790443e8
Merge pull request #9705 from CakeDC/feature/backport-paginate-multiple-queries
...
2.next - Backport multiple paginators
2017-06-14 21:41:13 -04:00
Marc Würth
da8414e13b
Use HTTPS for the opensource.org MIT license URL
2017-06-11 00:23:22 +02:00
Marc Würth
04efc7ba50
Use HTTPS for the book.cakephp.org URL
2017-06-11 00:15:36 +02:00
Marc Würth
10b89b51a9
Use HTTPS for the cakefoundation.org URL
2017-06-11 00:10:59 +02:00
Marc Würth
17314baa15
Use HTTPS for the cakephp.org URL
2017-06-10 23:40:28 +02:00
mark_story
cf679a3233
Merge branch '2.x' into 2.next
2017-05-27 21:47:22 -04:00
Joe
70ead28a1d
Redo commits on 2.next branch
2017-05-12 02:02:36 -04:00
mark_story
5685c031e2
Disable autocomplete on CSRF/Security token fields.
...
New versions of Safari will overwrite these fields when a user uses the
back button. If one-time CSRF tokens are in use the request will be
blackholed.
Refs #10486
2017-04-05 13:02:17 -04:00
chinpei215
3b75bd2dea
Fix risky tests
...
- Fix CakeTestCase::run() to restore original output buffering level
- Fix an undefined variable warning in missing_controller.ctp
- Fix ViewTest (backport of 92bd86274b64c31ef6034caa74bb168be041b5e0)
- Fix ThemeViewTest
2017-03-25 20:24:31 +09:00
chinpei215
31a1837c1d
Merge branch '2.x' into 2.next
...
Conflicts:
lib/Cake/Test/Case/View/Helper/FlashHelperTest.php
lib/Cake/VERSION.txt
lib/Cake/View/Helper/FlashHelper.php
2017-03-25 17:12:28 +09:00
mark_story
b6372d63d9
Rename (small|tiny)int to (small|tiny)integer
...
Make the new types consistent with the biginteger.
2017-03-11 21:41:22 -05:00
Mark van Driel
25d597910f
Code cleanup
2017-03-08 23:19:37 +01:00
Mark van Driel
4728586365
Make error class of div in FormHelper::input configurable
2017-03-08 13:15:00 +01:00
Sebastien Barre
c0ea3d08e6
update ModelTask and FormHelper for tinyint,smallint
2017-03-05 22:17:28 -05:00
kanonji
3978f87c58
Stringify values to avoid trap of in_array() type juggling
2017-02-28 03:33:50 +09:00
chinpei215
94d9bcd674
Fix FlashHelper::render() cannot render default
messages
...
Fixes #9910
2017-01-05 19:00:52 +09:00
mark_story
cceeb34d1d
Fix docblock formatting.
2017-01-03 11:01:41 -05:00
Shunsuke Takahashi
3f38318802
Updating doc for options prepend
2016-12-21 19:08:32 +09:00
Shunsuke Takahashi
e19a7b2594
Check for options parameter is array
2016-12-21 18:33:58 +09:00
Shunsuke Takahashi
6f5b16b31f
Allow the prepend the addCrumb method
2016-12-21 16:34:35 +09:00
mark_story
837741db66
Merge branch '2.x' into 2.next
2016-12-13 22:48:44 -05:00
mark_story
e3221b1c38
Fix errors in php7.1
...
* The constructor of errors has changed in PHP 7.1
* mcrypt is no longer available in PHP 7.1 by default.
2016-12-05 16:14:33 -05:00
Rodrigo Pérez
c0aa418984
refs #backport-paginate-multiple-queries fix array notation to be compatible with php 5.3
2016-11-04 11:19:43 +00:00
Rodrigo Pérez
20da4484de
refs #backport-paginate-multiple-queries Backporting cakephp 3.3 feature to paginate multiple queries
2016-11-04 11:10:28 +00:00
xhs345
c59fb85da8
Add support for stacking Flash messages
...
See Issue #7830
2016-10-28 09:10:01 -07:00
mark_story
135a24e0f1
Merge branch '2.x' into 2.next
2016-10-28 00:29:46 -04:00
chinpei215
d7ae1c92e7
Backport test cases and make sure those pass
2016-10-16 22:04:24 +09:00
chinpei215
0d96b9ff64
Backport changes in SecurityComponent and FormHelper
2016-10-16 21:55:05 +09:00
mark_story
8baf193995
Fix warning in PHP 7.1
...
Refs #9592
2016-10-11 16:59:35 -04:00