Name argument not passed correctly

David Stosik - June 20, 2008 - 11:05
Project:Mobile Codes
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

At lines 74 to 77 of mobile_codes.module, we can read:

<?php
$output
= '<img src="http://mobilecodes.nokia.com/'. $arguments['type'] .'?'
 
. $text['data'] .'='. urlencode($data) .'&'. $text['size'] .'='. $arguments['size'][$arguments['type']]
  .
'&name='. $name . $text['margin_encoding'] .'&type='. $arguments['data']
  .
'&MODE='. $mode .'&a=view" alt="'. $name .'" />';
?>

But $name hasn't be defined anywhere, thus, the name argument is not used when generating barcode.
$name should be replaced by $arguments['name'] if no other treatment is needed...

Regards,
David

#1

Deciphered - June 22, 2008 - 01:06
Status:active» duplicate

This is a duplicate of #268893: No Name, which has been fixed.

Download 6.x-1.x-dev.

 
 

Drupal is a registered trademark of Dries Buytaert.