]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
removed deprecate function and url from friends collections add action
authorCash Costello <cash.costello@gmail.com>
Fri, 29 Jun 2012 02:42:52 +0000 (22:42 -0400)
committerCash Costello <cash.costello@gmail.com>
Fri, 29 Jun 2012 02:42:52 +0000 (22:42 -0400)
actions/friends/collections/add.php

index 1e2bc1d5cebce05021104e1d172155767403ff31..9dc17b37ec465e8b31b33f1aa52c17e7fc46b3a2 100644 (file)
@@ -20,8 +20,7 @@ if ($id) {
        $result = update_access_collection($id, $friends);
        if ($result) {
                system_message(elgg_echo("friends:collectionadded"));
-               // go to the collections page
-               forward("pg/collections/" . get_loggedin_user()->username);
+               forward("collections/" . elgg_get_logged_in_user_entity()->username);
        } else {
                register_error(elgg_echo("friends:nocollectionname"));
                forward(REFERER);