Plugin Directory

Changeset 1286661


Ignore:
Timestamp:
11/15/2015 04:42:41 PM (10 years ago)
Author:
chrisy
Message:

add fix from sam wilson for if the configured gv class doesn't load

Location:
tfo-graphviz/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tfo-graphviz/trunk/readme.txt

    r1286655 r1286661  
    229229
    230230= 1.13 =
    231 * Better diagnostic output when running `dot` doesn't work, including the command line used and adding the DOT as submitted, with line numbers.
    232 * Add more de-mangling rules, for smart quotes and ellipsis.
    233 * Improve the newline de-mangling.
    234 * Add the SVG output format. See http://blog.flirble.org/2015/11/15/adding-svg-support-tfo-graphviz/ for example.
     231* Better diagnostic output when running `dot` doesn't work, including the command line used and adding the DOT as submitted, with line numbers. (Joachim Durchholz)
     232* Add more de-mangling rules, for smart quotes and ellipsis. (Joachim Durchholz)
     233* Improve the newline de-mangling. (Joachim Durchholz)
     234* Add the SVG output format. See http://blog.flirble.org/2015/11/15/adding-svg-support-tfo-graphviz/ for example. (Joachim Durchholz)
     235* Add a fix for if the requires GV class isn't loadable, such as when GV gets upgraded on the system. (Sam Wilson)
    235236
    236237= 1.12 =
  • tfo-graphviz/trunk/tfo-graphviz.php

    r1286655 r1286661  
    274274        $gv_method = $this->options['method'];
    275275        require_once dirname( __FILE__ ).'/tfo-graphviz-'.$this->methods[$gv_method].'.php';
     276        if (!class_exists($gv_method)) {
     277            $gv_method = 'TFO_GraphViz_Method';
     278        }
    276279        $gv_object = new $gv_method($dot, $atts, TFO_GRAPHVIZ_CONTENT_DIR, TFO_GRAPHVIZ_CONTENT_URL);
    277280        if (!$gv_object) {
     
    282285        return $gv_object;
    283286    }
    284 
    285287
    286288}
Note: See TracChangeset for help on using the changeset viewer.