Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revisionBoth sides next revision
dev:grapher-php [2020/11/01 15:40] babdev:grapher-php [2020/11/01 15:44] bab
Line 434: Line 434:
             $output .= '"name" : "'. $title .'",'."\n";             $output .= '"name" : "'. $title .'",'."\n";
             $output .= '"value" : "'. $item['size'] .'",'."\n";             $output .= '"value" : "'. $item['size'] .'",'."\n";
-            $output .= '"type" : "'. substr($item['ns'],4) ."\n";+            $output .= '"type" : "'. substr($item['ns'],4) .'"'."\n";
             if (!empty( $item['media'][0]))             if (!empty( $item['media'][0]))
             {             {
Line 440: Line 440:
  $file = count($path );  $file = count($path );
  $folder="";  $folder="";
- for($i=0 ; $< $file-1 ; $i++)+ for($n=0 ; $< $file-1 ; $n++)
  {  {
- $folder = $folder . $path[$i] . "/";+ $folder = $folder . $path[$n] . "/";
  }  }
  $output .= ',"img" : "'. DOKU_INC. "data/media/" . $folder . "300x300-" . $path[$file-1] .'"'."\n";  $output .= ',"img" : "'. DOKU_INC. "data/media/" . $folder . "300x300-" . $path[$file-1] .'"'."\n";
Line 483: Line 483:
 $grapher = new Grapher(); $grapher = new Grapher();
 $grapher->run(); $grapher->run();
- 
  
  
  
 </file> </file>
  • dev/grapher-php.txt
  • Last modified: 2020/11/01 15:59
  • by bab