Commit eb6ea697 authored by gdd's avatar gdd

Renamed unset back to clear because unset is a reserved word which is the...

Renamed unset back to clear because unset is a reserved word which is the whole reason I didn't name it unset in the first place
parent c256f641
......@@ -170,9 +170,8 @@ public function castValue($value) {
*
* @param $key
* @todo
*
*/
public function unset($key) {
public function clear($key) {
$parts = explode('.', $key);
if (count($parts) == 1) {
unset($this->data[$key]);
......
......@@ -1017,7 +1017,7 @@ function image_effect_save($style_name, $effect) {
*/
function image_effect_delete($style_name, $effect) {
$config = config('image.styles.' . $style_name);
$config->unset('effects.' . $effect['ieid']);
$config->clear('effects.' . $effect['ieid']);
$config->save();
$style = image_style_load($style_name);
image_style_flush($style);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment