summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/class/object.class.php11
-rw-r--r--app/class/user.class.php11
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()