Referring to wrong key in image_effect_save() was causing errors
parent
a644a0ae58
commit
5ed90e0fcd
|
@ -1002,7 +1002,7 @@ function image_effect_load($name, $style_name) {
|
||||||
* An image effect array. In the case of a new effect, 'ieid' will be set.
|
* An image effect array. In the case of a new effect, 'ieid' will be set.
|
||||||
*/
|
*/
|
||||||
function image_effect_save($effect) {
|
function image_effect_save($effect) {
|
||||||
$config = config('image.styles.' . $effect['style_name']);
|
$config = config('image.styles.' . $effect['name']);
|
||||||
if (!empty($effect['ieid'])) {
|
if (!empty($effect['ieid'])) {
|
||||||
$old_effect = $config->get('effects.' . $effect['ieid']);
|
$old_effect = $config->get('effects.' . $effect['ieid']);
|
||||||
foreach ($old_effect as $key => $value) {
|
foreach ($old_effect as $key => $value) {
|
||||||
|
|
Loading…
Reference in New Issue