]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
fixed bug with plugin settings because of assignment operator confusion
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 22 Jan 2011 02:22:09 +0000 (02:22 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 22 Jan 2011 02:22:09 +0000 (02:22 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7896 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/classes/ElggPlugin.php

index e708a72b564d1d83cacc742cfbbff19d424db9d4..b6cb792fbcc4c3ff950466d21b4862848f232499 100644 (file)
@@ -292,7 +292,7 @@ class ElggPlugin extends ElggObject {
                        'value' => $value
                ), $value);
 
-               return $this->$name = $value;
+               return $this->set($name, $value);
        }
 
 
@@ -791,11 +791,11 @@ class ElggPlugin extends ElggObject {
                        }
 
                        $this->attributes[$name] = $value;
+                       
+                       return true;
                } else {
                        return set_private_setting($this->guid, $name, $value);
                }
-
-               return true;
        }
 
        /**