Project

General

Profile

« Previous | Next » 

Revision 7dc0d23c

ID7dc0d23c1c891c27d7c6b9e9578bd631730c4f3b
Parent 09995259
Child c621f296

Added by Jocelyn Delande about 9 years ago

propper typing of params

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences

Changesets

panorama.php
35 35
  ?>
36 36
  <script>
37 37
   <?php
38
     printf ("var title = \"%s\"\n", $titre);
39
     printf ("var img_prefix = '%s/%s'\n", $base_dir, $prefix);
38
     printf ("var title = \"%s\";\n", $titre);
39
     printf ("var img_prefix = '%s/%s';\n", $base_dir, $prefix);
40 40
     if (is_array($params)) $opt_vals = array_merge($params, $opt_vals);
41 41
     foreach(array('to_cap', 'to_ele', 'to_zoom', 'image_loop') as $val) {
42
        if (isset($opt_vals[$val])) printf ('var '.$val.' = '.$opt_vals[$val].";\n"); // correction du d├ęcalage angulaire par rapport au Nord
42
        if (isset($opt_vals[$val])) 
43
        printf ('var '.$val.' = '.utils::php2ini($opt_vals[$val]).";\n"); // correction du d├ęcalage angulaire par rapport au Nord
43 44
     }
44 45
  ?>
45 46
  </script>