Forskel mellem versioner af "/GraphViz"

Fra Testwiki
Spring til navigation Spring til søgning
(Silencing errors.)
 
(Tilsyneladende en bug der bliver provokeret af en ny PHP version)
 
Linje 1: Linje 1:
  
  
== Local mod ==
+
== Hotfix 140801 ==
  
add:
+
Ret linie 74:
 +
<syntaxhighlight lang="php">
 +
//self executing anonymous function to prevent global scope assumptions
 +
call_user_func( function() {
  
<pre>
+
        // Set execution path
if (!isset($GLOBALS['wgGraphVizSettings']) ||
+
</syntaxhighlight>
    !is_object($GLOBALS['wgGraphVizSettings'])) {
 
  $GLOBALS['wgGraphVizSettings'] = new stdClass();
 
}
 
</pre>
 
  
to extensions/GraphViz/GraphViz.php at line 77.
+
Til:
 +
 
 +
<syntaxhighlight lang="php">
 +
//self executing anonymous function to prevent global scope assumptions
 +
call_user_func( function() {
 +
 
 +
        if (!isset($GLOBALS['wgGraphVizSettings']) ||
 +
            !is_object($GLOBALS['wgGraphVizSettings'])) {
 +
                $GLOBALS['wgGraphVizSettings'] = new stdClass();
 +
        }
 +
        // Set execution path
 +
</syntaxhighlight>

Nuværende version fra 1. aug 2014, 19:08


Hotfix 140801[redigér]

Ret linie 74:

//self executing anonymous function to prevent global scope assumptions
call_user_func( function() {

        // Set execution path

Til:

//self executing anonymous function to prevent global scope assumptions
call_user_func( function() {

        if (!isset($GLOBALS['wgGraphVizSettings']) ||
            !is_object($GLOBALS['wgGraphVizSettings'])) {
                $GLOBALS['wgGraphVizSettings'] = new stdClass();
        }
        // Set execution path