mirror of
				https://github.com/getgrav/grav-plugin-admin.git
				synced 2025-10-31 02:16:26 +01:00 
			
		
		
		
	Fixed saving configuration in PHP 7.4
This commit is contained in:
		
							
								
								
									
										36
									
								
								CHANGELOG.md
									
									
									
									
									
								
							
							
						
						
									
										36
									
								
								CHANGELOG.md
									
									
									
									
									
								
							| @@ -1,3 +1,9 @@ | |||||||
|  | # v1.9.12 | ||||||
|  | ## mm/dd/2019 | ||||||
|  |  | ||||||
|  | 1. [](#bugfix) | ||||||
|  |     * Fixed saving configuration in PHP 7.4 | ||||||
|  |  | ||||||
| # v1.9.11 | # v1.9.11 | ||||||
| ## 11/06/2019 | ## 11/06/2019 | ||||||
|  |  | ||||||
| @@ -37,13 +43,13 @@ | |||||||
|     * Fixed issue with `array` field nested in `list` that were losing their index order when the list reordered |     * Fixed issue with `array` field nested in `list` that were losing their index order when the list reordered | ||||||
|     * Fixed file form field failing resolution checks in certain circumstances |     * Fixed file form field failing resolution checks in certain circumstances | ||||||
|     * Fixed issue with deleting files in config based YAML files |     * Fixed issue with deleting files in config based YAML files | ||||||
|      |  | ||||||
| # v1.9.7 | # v1.9.7 | ||||||
| ## 06/21/2019 | ## 06/21/2019 | ||||||
|  |  | ||||||
| 1. [](#bugfix) | 1. [](#bugfix) | ||||||
|     * Fixed issue with charts in dashboard where label would cut off [#1700](https://github.com/getgrav/grav-plugin-admin/issues/1700) |     * Fixed issue with charts in dashboard where label would cut off [#1700](https://github.com/getgrav/grav-plugin-admin/issues/1700) | ||||||
|     * Resetting a user's password clears the user's site access [grav#2528](https://github.com/getgrav/grav/issues/2528)  |     * Resetting a user's password clears the user's site access [grav#2528](https://github.com/getgrav/grav/issues/2528) | ||||||
|     * Fixed issue with permissions toggle [#1702](https://github.com/getgrav/grav-plugin-admin/issues/1702) |     * Fixed issue with permissions toggle [#1702](https://github.com/getgrav/grav-plugin-admin/issues/1702) | ||||||
|  |  | ||||||
| # v1.9.6 | # v1.9.6 | ||||||
| @@ -85,7 +91,7 @@ | |||||||
|     * Added a new **YAML Linter** report to the `Tools - Reports` section |     * Added a new **YAML Linter** report to the `Tools - Reports` section | ||||||
| 1. [](#improved) | 1. [](#improved) | ||||||
|     * Updated package.json scripts to properly use gulp compiler |     * Updated package.json scripts to properly use gulp compiler | ||||||
|      |  | ||||||
| # v1.9.2 | # v1.9.2 | ||||||
| ## 04/15/2019 | ## 04/15/2019 | ||||||
|  |  | ||||||
| @@ -98,7 +104,7 @@ | |||||||
|  |  | ||||||
| 1. [](#bugfix) | 1. [](#bugfix) | ||||||
|     * Fix for Page saving issues [#1648](https://github.com/getgrav/grav-plugin-admin/issues/1648) |     * Fix for Page saving issues [#1648](https://github.com/getgrav/grav-plugin-admin/issues/1648) | ||||||
|     * Remove status message when picking folder for move [#1650](https://github.com/getgrav/grav-plugin-admin/issues/1650)  |     * Remove status message when picking folder for move [#1650](https://github.com/getgrav/grav-plugin-admin/issues/1650) | ||||||
|  |  | ||||||
| # v1.9.0 | # v1.9.0 | ||||||
| ## 04/11/2019 | ## 04/11/2019 | ||||||
| @@ -133,10 +139,10 @@ | |||||||
|     * Homepage link should be `https://` [#1564](https://github.com/getgrav/grav-plugin-admin/issues/1564) |     * Homepage link should be `https://` [#1564](https://github.com/getgrav/grav-plugin-admin/issues/1564) | ||||||
|     * Improve lang string to describe XSS security settings [#1566](https://github.com/getgrav/grav-plugin-admin/issues/1566) |     * Improve lang string to describe XSS security settings [#1566](https://github.com/getgrav/grav-plugin-admin/issues/1566) | ||||||
|     * Take admin setting for 2FA into account when showing user 2FA badge [#1568](https://github.com/getgrav/grav-plugin-admin/issues/1568) |     * Take admin setting for 2FA into account when showing user 2FA badge [#1568](https://github.com/getgrav/grav-plugin-admin/issues/1568) | ||||||
|     * Moved `ignore` and `key` field into form plugin   |     * Moved `ignore` and `key` field into form plugin | ||||||
|     * Improved usability of `System` configuration blueprint with side-tabs |     * Improved usability of `System` configuration blueprint with side-tabs | ||||||
|     * Cleaned up UI in `Scheduler` tools page  |     * Cleaned up UI in `Scheduler` tools page | ||||||
|     * Updated languages      |     * Updated languages | ||||||
| 1. [](#bugfix) | 1. [](#bugfix) | ||||||
|     * Fixed user edit links if Flex Objects plugin is installed but user isn't Flex User |     * Fixed user edit links if Flex Objects plugin is installed but user isn't Flex User | ||||||
|     * Fixed deprecated `sameas()` Twig test |     * Fixed deprecated `sameas()` Twig test | ||||||
| @@ -146,15 +152,15 @@ | |||||||
|     * Fixed issue with Safari browser and blueprint fields with `toggleable: true` [#1643](https://github.com/getgrav/grav-plugin-admin/issues/1643) |     * Fixed issue with Safari browser and blueprint fields with `toggleable: true` [#1643](https://github.com/getgrav/grav-plugin-admin/issues/1643) | ||||||
|     * Incorrect 2FA lang code [#1618](https://github.com/getgrav/grav-plugin-admin/issues/1618) |     * Incorrect 2FA lang code [#1618](https://github.com/getgrav/grav-plugin-admin/issues/1618) | ||||||
|     * Fixed potential undefined property in `onPageNotFound` event handling |     * Fixed potential undefined property in `onPageNotFound` event handling | ||||||
|     * Proper fix for `vUndefined` when updating plugins/themes  |     * Proper fix for `vUndefined` when updating plugins/themes | ||||||
|     * Text in Tab Tools/Direct install disappears [#1613](https://github.com/getgrav/grav-plugin-admin/issues/1613) |     * Text in Tab Tools/Direct install disappears [#1613](https://github.com/getgrav/grav-plugin-admin/issues/1613) | ||||||
|     * Fallback to page `slug` in Pages list if title is empty [grav#2267](https://github.com/getgrav/grav/issues/2267) |     * Fallback to page `slug` in Pages list if title is empty [grav#2267](https://github.com/getgrav/grav/issues/2267) | ||||||
|     * Fixes backup button issues with `;` param separator [#1602](https://github.com/getgrav/grav-plugin-admin/issues/1602) [#1502](https://github.com/getgrav/grav-plugin-admin/issues/1502) |     * Fixes backup button issues with `;` param separator [#1602](https://github.com/getgrav/grav-plugin-admin/issues/1602) [#1502](https://github.com/getgrav/grav-plugin-admin/issues/1502) | ||||||
|     * Set default state for `show_modular` to `true` [#1599](https://github.com/getgrav/grav-plugin-admin/issues/1599) |     * Set default state for `show_modular` to `true` [#1599](https://github.com/getgrav/grav-plugin-admin/issues/1599) | ||||||
|     * Removed `tabs`, `tab`, and `toggle` fields as they are now in Form plugin |     * Removed `tabs`, `tab`, and `toggle` fields as they are now in Form plugin | ||||||
|     * Fix issue with new page always showing modular page templates [#1573](https://github.com/getgrav/grav-plugin-admin/issues/1573) |     * Fix issue with new page always showing modular page templates [#1573](https://github.com/getgrav/grav-plugin-admin/issues/1573) | ||||||
|     * Fixed issue deleting files in plugins/themes/config  |     * Fixed issue deleting files in plugins/themes/config | ||||||
|     * Fixed array support in admin languages, e.g. `DAYS_OF_THE_WEEK`     |     * Fixed array support in admin languages, e.g. `DAYS_OF_THE_WEEK` | ||||||
|     * Fixed user login / remember me triggering before admin gets initialized |     * Fixed user login / remember me triggering before admin gets initialized | ||||||
|     * Fixed a bug when deleting files via AJAX |     * Fixed a bug when deleting files via AJAX | ||||||
|     * Fixed error page not to be the frontend version |     * Fixed error page not to be the frontend version | ||||||
| @@ -167,24 +173,24 @@ | |||||||
|     * Removed duplicate language strings |     * Removed duplicate language strings | ||||||
|     * Fixed default `job_at` so it does not fail if missing |     * Fixed default `job_at` so it does not fail if missing | ||||||
|     * Minor JS group `bottom` fix |     * Minor JS group `bottom` fix | ||||||
|   |  | ||||||
| # v1.8.20 | # v1.8.20 | ||||||
| ## 03/20/2019 | ## 03/20/2019 | ||||||
|  |  | ||||||
| 1. [](#improved) | 1. [](#improved) | ||||||
|     * Added security field to column [#1622](https://github.com/getgrav/grav-plugin-admin/pull/1622) |     * Added security field to column [#1622](https://github.com/getgrav/grav-plugin-admin/pull/1622) | ||||||
|      |  | ||||||
| # v1.8.19 | # v1.8.19 | ||||||
| ## 02/13/2019 | ## 02/13/2019 | ||||||
|  |  | ||||||
| 1. [](#bugfix) | 1. [](#bugfix) | ||||||
|     * Moved `show_modular` to proper place - Doh! [grav#2362](https://github.com/getgrav/grav/issues/2362)   |     * Moved `show_modular` to proper place - Doh! [grav#2362](https://github.com/getgrav/grav/issues/2362) | ||||||
|  |  | ||||||
| # v1.8.18 | # v1.8.18 | ||||||
| ## 02/12/2019 | ## 02/12/2019 | ||||||
|  |  | ||||||
| 1. [](#bugfix) | 1. [](#bugfix) | ||||||
|     * Set default value for `show_modular` [grav#2362](https://github.com/getgrav/grav/issues/2362)   |     * Set default value for `show_modular` [grav#2362](https://github.com/getgrav/grav/issues/2362) | ||||||
|  |  | ||||||
| # v1.8.17 | # v1.8.17 | ||||||
| ## 02/07/2019 | ## 02/07/2019 | ||||||
| @@ -205,7 +211,7 @@ | |||||||
| 1. [](#bugfix) | 1. [](#bugfix) | ||||||
|     * Fixed calendar js module not properly loading for datetime field [#1581](https://github.com/getgrav/grav-plugin-admin/issues/1581) |     * Fixed calendar js module not properly loading for datetime field [#1581](https://github.com/getgrav/grav-plugin-admin/issues/1581) | ||||||
|     * Fixed deleting file when using file field type [#1558](https://github.com/getgrav/grav-plugin-admin/issues/1558) |     * Fixed deleting file when using file field type [#1558](https://github.com/getgrav/grav-plugin-admin/issues/1558) | ||||||
|     * Unset state from user if not super or user admin    |     * Unset state from user if not super or user admin | ||||||
|  |  | ||||||
| # v1.8.15 | # v1.8.15 | ||||||
| ## 12/14/2018 | ## 12/14/2018 | ||||||
|   | |||||||
| @@ -737,8 +737,8 @@ class AdminBaseController | |||||||
|         // Process previously uploaded files for the current URI |         // Process previously uploaded files for the current URI | ||||||
|         // and finally store them. Everything else will get discarded |         // and finally store them. Everything else will get discarded | ||||||
|         $queue = $this->admin->session()->getFlashObject('files-upload'); |         $queue = $this->admin->session()->getFlashObject('files-upload'); | ||||||
|         $queue = $queue[base64_encode($this->grav['uri']->url())]; |  | ||||||
|         if (is_array($queue)) { |         if (is_array($queue)) { | ||||||
|  |             $queue = $queue[base64_encode($this->grav['uri']->url())]; | ||||||
|             foreach ($queue as $key => $files) { |             foreach ($queue as $key => $files) { | ||||||
|                 foreach ($files as $destination => $file) { |                 foreach ($files as $destination => $file) { | ||||||
|                     if (!rename($file['tmp_name'], $destination)) { |                     if (!rename($file['tmp_name'], $destination)) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user