mirror of
				https://github.com/getgrav/grav.git
				synced 2025-10-31 10:25:59 +01:00 
			
		
		
		
	Fixed Undefined method closure::fields() when getting avatar for user, thanks @Romarain [#2422]
				
					
				
			This commit is contained in:
		| @@ -3,6 +3,8 @@ | |||||||
|  |  | ||||||
| 1. [](#improved) | 1. [](#improved) | ||||||
|     * Added `Content-Type: application/json` body support for PSR-7 `ServerRequest` |     * Added `Content-Type: application/json` body support for PSR-7 `ServerRequest` | ||||||
|  | 1. [](#bugfix) | ||||||
|  |     * Fixed `Undefined method closure::fields()` when getting avatar for user, thanks @Romarain [#2422](https://github.com/getgrav/grav/issues/2422) | ||||||
|  |  | ||||||
| # v1.6.0-rc.4 | # v1.6.0-rc.4 | ||||||
| ## 03/20/2019 | ## 03/20/2019 | ||||||
|   | |||||||
| @@ -153,7 +153,7 @@ class User extends Data implements UserInterface | |||||||
|  |  | ||||||
|     public function getMediaFolder() |     public function getMediaFolder() | ||||||
|     { |     { | ||||||
|         return $this->blueprints->fields()['avatar']['destination'] ?? 'user://accounts/avatars'; |         return $this->blueprints()->fields()['avatar']['destination'] ?? 'user://accounts/avatars'; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public function getMediaOrder() |     public function getMediaOrder() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user