diff options
| author | Malf Furious <m@lfurio.us> | 2016-09-13 23:32:37 -0400 | 
|---|---|---|
| committer | Malf Furious <m@lfurio.us> | 2016-09-13 23:32:37 -0400 | 
| commit | 7fd20cd4e15aec3079377e48f18ba91bbda462eb (patch) | |
| tree | 56ceaa67b92b42a892e163a5dca5c1b3f68aa490 /app | |
| parent | 9f287ae8422ec202b56c7897a6795c34d1d28a3b (diff) | |
| download | scrott-7fd20cd4e15aec3079377e48f18ba91bbda462eb.tar.gz scrott-7fd20cd4e15aec3079377e48f18ba91bbda462eb.zip | |
Move function User::getHeadImage() to Object class
Increase the scope of this function so it may be used by groups.
Diffstat (limited to '')
| -rw-r--r-- | app/class/object.class.php | 8 | ||||
| -rw-r--r-- | app/class/user.class.php | 8 | 
2 files changed, 8 insertions, 8 deletions
| diff --git a/app/class/object.class.php b/app/class/object.class.php index cfc452c..8f64fc4 100644 --- a/app/class/object.class.php +++ b/app/class/object.class.php @@ -593,6 +593,14 @@ abstract class Object extends Framework          return false;      } + +    /* +     * Get object's head image +     */ +    function getHeadImage() +    { +        return $this->ar() . "/file.php?d=img/heads&f=" . $this->guid; +    }  }  /* diff --git a/app/class/user.class.php b/app/class/user.class.php index 3239568..44b4b5f 100644 --- a/app/class/user.class.php +++ b/app/class/user.class.php @@ -214,14 +214,6 @@ class User extends Object      }      /* -     * Get this user's head image -     */ -    function getHeadImage() -    { -        return $this->ar() . "/file.php?d=img/heads&f=" . $this->guid; -    } - -    /*       * Remove this user's head image       */      function rmHeadImage() | 
