]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
using page owner rather than owner for better support for groups
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 20 Jan 2011 01:42:21 +0000 (01:42 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 20 Jan 2011 01:42:21 +0000 (01:42 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7888 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/layout/shells/content/header.php

index 4eee09b5e5b8e3d8352fd9536e2a02a3a4fd9f58..7f3afc535482f7696fbb4e93b50e68c3426c83ef 100644 (file)
@@ -26,7 +26,7 @@ if ($context) {
                $buttons = $vars['buttons'];
        } else {
                if (isloggedin() && $context) {
-                       $guid = get_loggedin_userid();
+                       $guid = elgg_get_page_owner_guid();
                        $new_link = elgg_get_array_value('new_link', $vars, "pg/$context/add/$guid/");
                        $params = array(
                                'href' => $new_link = elgg_normalize_url($new_link),