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

Diff of /contributions/modules/content_refresh/content_refresh.module

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

revision 1.10, Fri Aug 21 19:47:13 2009 UTC revision 1.11, Fri Aug 21 20:18:56 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: content_refresh.module,v 1.9 2009/08/15 18:42:45 yaph Exp $  // $Id: content_refresh.module,v 1.10 2009/08/21 19:47:13 yaph Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 107  function content_refresh_comment($a1, $o Line 107  function content_refresh_comment($a1, $o
107      case 'insert':      case 'insert':
108      case 'update':      case 'update':
109        $nid = $a1['nid'];        $nid = $a1['nid'];
110        $uid = $a1['uid'];        $uid = (int) $a1['uid'];
111        break;        break;
112      case 'publish':      case 'publish':
113      case 'unpublish':      case 'unpublish':
114      case 'delete':      case 'delete':
115        $nid = $a1->nid;        $nid = $a1->nid;
116        $uid = $a1->uid;        $uid = (int) $a1->uid;
117        break;        break;
118    }    }
119    
120    if ($nid !== false && 0 === $uid) {    if ($nid !== false && 0 === $uid) {
121      // retrieve the absolute url for the node      // retrieve the absolute url for the node
122      $options = array('absolute' => TRUE);      $options = array('absolute' => TRUE);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.2