Projet

Général

Profil

Révision 30d5b9c5

Ajouté par Mathieu Schiano Di Schiabica il y a environ 8 ans

Update to 7.42

Voir les différences:

drupal7/modules/poll/poll.module
631 631
 *   The node object to load.
632 632
 */
633 633
function poll_block_latest_poll_view($node) {
634
  global $user;
635
  $output = '';
636

  
637 634
  // This is necessary for shared objects because PHP doesn't copy objects, but
638 635
  // passes them by reference.  So when the objects are cached it can result in
639 636
  // the wrong output being displayed on subsequent calls.  The cloning and
......
674 671
 * Implements hook_view().
675 672
 */
676 673
function poll_view($node, $view_mode) {
677
  global $user;
678
  $output = '';
679

  
680 674
  if (!empty($node->allowvotes) && empty($node->show_results)) {
681 675
    $node->content['poll_view_voting'] = drupal_get_form('poll_view_voting', $node);
682 676
  }
......
694 688
function poll_teaser($node) {
695 689
  $teaser = NULL;
696 690
  if (is_array($node->choice)) {
697
    foreach ($node->choice as $k => $choice) {
691
    foreach ($node->choice as $choice) {
698 692
      if ($choice['chtext'] != '') {
699 693
        $teaser .= '* ' . check_plain($choice['chtext']) . "\n";
700 694
      }

Formats disponibles : Unified diff