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

8.0.x
Greg Dunlap 2012-02-17 14:15:16 -08:00
parent c256f64104
commit eb6ea697b8
2 changed files with 2 additions and 3 deletions

View File

@ -170,9 +170,8 @@ class DrupalConfig {
*
* @param $key
* @todo
*
*/
public function unset($key) {
public function clear($key) {
$parts = explode('.', $key);
if (count($parts) == 1) {
unset($this->data[$key]);

View File

@ -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);