diff options
author | Malf Furious <m@lfurio.us> | 2016-09-18 11:59:11 -0400 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-09-18 11:59:11 -0400 |
commit | 35da301d31045b0974100307a7f0f4128b482170 (patch) | |
tree | 3e4624c95293c3000e0dbac095af4a461ae35176 | |
parent | 63ca3ee23edd66cae4a2cc621cfc1352ea958a27 (diff) | |
download | scrott-35da301d31045b0974100307a7f0f4128b482170.tar.gz scrott-35da301d31045b0974100307a7f0f4128b482170.zip |
Move function User::rmHeadImage() to Object class
Diffstat (limited to '')
-rw-r--r-- | app/class/object.class.php | 11 | ||||
-rw-r--r-- | app/class/user.class.php | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/app/class/object.class.php b/app/class/object.class.php index 1a01ada..7c0b7bb 100644 --- a/app/class/object.class.php +++ b/app/class/object.class.php @@ -609,6 +609,17 @@ abstract class Object extends Framework { return $this->ar() . "/file.php?d=img/heads&f=" . $this->guid; } + + /* + * Remove this object's head image + */ + function rmHeadImage() + { + if (!is_file("assets/img/heads/" . $this->guid)) + return true; + + return unlink("assets/img/heads/" . $this->guid); + } } /* diff --git a/app/class/user.class.php b/app/class/user.class.php index 44b4b5f..b8143a9 100644 --- a/app/class/user.class.php +++ b/app/class/user.class.php @@ -214,17 +214,6 @@ class User extends Object } /* - * Remove this user's head image - */ - function rmHeadImage() - { - if (!is_file("assets/img/heads/" . $this->guid)) - return true; - - return unlink("assets/img/heads/" . $this->guid); - } - - /* * Get all groups this user owns or is a member of */ function getGroups() |