/[drupal]/contributions/modules/wishlist/wishlist.module
ViewVC logotype

Diff of /contributions/modules/wishlist/wishlist.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.44, Sat Jan 26 23:01:53 2008 UTC revision 1.45, Sat Jan 26 23:05:37 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  /* $Id: wishlist.module,v 1.43 2008/01/16 05:44:44 smclewin Exp $ */  /* $Id: wishlist.module,v 1.44 2008/01/26 23:01:53 smclewin Exp $ */
3  // Wishlist management module for Drupal  // Wishlist management module for Drupal
4  // Written by Scott McLewin and Melanie Paul-McLewin  // Written by Scott McLewin and Melanie Paul-McLewin
5  // drupal AT mclewin DOT com  // drupal AT mclewin DOT com
# Line 773  function _wishlist_render_purchased_item Line 773  function _wishlist_render_purchased_item
773          // then check to see if this user, the owner, has the right to reveal          // then check to see if this user, the owner, has the right to reveal
774          // and reveal mode is turned on.  If not, do not show this region.          // and reveal mode is turned on.  If not, do not show this region.
775          if(variable_get("wishlist_hide_purchase_info_own", FALSE) && ($user->uid == $node->uid)) {          if(variable_get("wishlist_hide_purchase_info_own", FALSE) && ($user->uid == $node->uid)) {
776              if(user_access('reveal purchase status') && ($_GET['wl_reveal'] != 1)) {              if(user_access('reveal purchase status') && isset($_GET['wl_reveal']) && ($_GET['wl_reveal'] != 1)) {
777                          return '';                          return '';
778                  }                  }
779          }          }
# Line 957  function _wishlist_hide_purchase_info($n Line 957  function _wishlist_hide_purchase_info($n
957                  // for the wl_reveal GET parameter.  If it is non-zero, then                  // for the wl_reveal GET parameter.  If it is non-zero, then
958                  // we won't hide the purchase details.                  // we won't hide the purchase details.
959                  if(user_access('reveal purchase status')) {                  if(user_access('reveal purchase status')) {
960                          if($_GET['wl_reveal'] != 0) {                          if(isset($_GET['wl_reveal']) && ($_GET['wl_reveal'] != 0)) {
961                                  return false;                                  return false;
962                          }                          }
963                  }                  }

Legend:
Removed from v.1.44  
changed lines
  Added in v.1.45

  ViewVC Help
Powered by ViewVC 1.1.2