Changeset 7516 for trunk/docscripts

Show
Ignore:
Timestamp:
03/03/07 18:14:47 (23 months ago)
Author:
pottedmeat
Message:

Make note of vml/svg in a requireIf statement

Location:
trunk/docscripts
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/docscripts/docparser.php

    r6915 r7516  
    7171      $environment = $environment->getValue(); 
    7272      $require = $environment->getValue(); 
    73       if ($environment instanceof DojoString && $require instanceof DojoString) { 
    74         $output[$package_name]['meta']['requires'][$environment->getValue()][] = $require->getValue(); 
    75       } 
     73      if ($require instanceof DojoString) { 
     74                                if ($environment instanceof DojoString) { 
     75                $output[$package_name]['meta']['requires'][$environment->getValue()][] = $require->getValue(); 
     76                                } 
     77                        } 
     78                        else { 
     79                                if ($environment->getValue() == "dojo.render.svg.capable") { 
     80                $output[$package_name]['meta']['requires']['svg'][] = $require; 
     81                                } 
     82                                else if($environment->getValue() == "dojo.render.vml.capable") { 
     83        $output[$package_name]['meta']['requires']['vml'][] = $require; 
     84                                } 
     85                        } 
    7686    } 
    7787  } 
  • trunk/docscripts/inc/Plugins.php

    r6910 r7516  
    4040 
    4141              $data = call_user_func($function, $by_resource, $by_object); 
     42                                                        if(!is_array($data)) continue; 
    4243              foreach ($data as $file => $contents) { 
    4344                $file = "{$output_dir}{$type}/{$format}/{$file}";