Changeset 1287

Show
Ignore:
Timestamp:
11/12/07 21:14:34 (1 year ago)
Author:
misja
Message:

Misja Hoebe <misja@curverider.co.uk> fixes #154, deleting of community feed subscription fails

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/newsclient/lib/function_actions.php

    r1251 r1287  
    33global $page_owner; 
    44 
    5 $action = optional_param('action'); 
     5$action = optional_param('action');  
     6$feed_owner = optional_param('feed_owner','',PARAM_INT);  
     7if(!empty($feed_owner)) { 
     8    $page_owner=$feed_owner;  
     9
     10 
    611if (logged_on && run("permissions:check", "profile")) { 
    712    if ($page_owner != $_SESSION['userid']) { 
  • devel/mod/newsclient/lib/function_subscriptions.php

    r1251 r1287  
    3838            if (run("permissions:check", "profile")) { 
    3939                $column2 .= " | <a href=\"".url."_rss/subscriptions.php?action=unsubscribe&amp;feed=".$feed->ident 
    40                     ."\" onclick=\"return confirm('".__gettext("Are you sure you want to unsubscribe from this feed?")."')\">" . __gettext("Unsubscribe") . "</a>"; 
     40                    ."&amp;feed_owner=".$page_owner."\" onclick=\"return confirm('".__gettext("Are you sure you want to unsubscribe from this feed?")."')\">" . __gettext("Unsubscribe") . "</a>"; 
    4141            } 
    4242