Commit c256f641 authored by gdd's avatar gdd

Renamed clear() to unset()

parent aa0e1782
......@@ -171,9 +171,8 @@ public function castValue($value) {
* @param $key
* @todo
*
* @todo Rename into unset().
*/
public function clear($key) {
public function unset($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->clear('effects.' . $effect['ieid']);
$config->unset('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