aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorMikael Nordfeldth <mmn@hethane.se>2016-02-23 14:33:09 +0100
committerMikael Nordfeldth <mmn@hethane.se>2016-02-23 14:33:09 +0100
commitd67254711264bbe82c80a9d2513a26f0ddf2c79d (patch)
tree7d330d47cf3d5f0c094910c7cb10e31aa492da3a /classes
parente16f7d04a84ac657560a3469910141b1c47d1877 (diff)
downloadgnu-social-d67254711264bbe82c80a9d2513a26f0ddf2c79d.tar
gnu-social-d67254711264bbe82c80a9d2513a26f0ddf2c79d.zip
getAliases should be only a list (numeric array)
Diffstat (limited to 'classes')
-rw-r--r--classes/Managed_DataObject.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/Managed_DataObject.php b/classes/Managed_DataObject.php
index cab7edd5c7..0857bb11f6 100644
--- a/classes/Managed_DataObject.php
+++ b/classes/Managed_DataObject.php
@@ -420,6 +420,11 @@ abstract class Managed_DataObject extends Memcached_DataObject
*/
public function getAliases()
{
+ return array_keys($this->getAliasesWithIDs());
+ }
+
+ public function getAliasesWithIDs()
+ {
$aliases = array();
$aliases[$this->getUri()] = $this->getID();