Remove the buffer_message global variable
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
This commit is contained in:
parent
c635322354
commit
c2cdfd7fb3
@ -5224,8 +5224,6 @@
|
||||
<code><![CDATA[DatabaseInterface::getInstance()]]></code>
|
||||
</DeprecatedMethod>
|
||||
<MixedAssignment>
|
||||
<code><![CDATA[$GLOBALS['buffer_message']]]></code>
|
||||
<code><![CDATA[$bufferMessage]]></code>
|
||||
<code><![CDATA[$pftext]]></code>
|
||||
</MixedAssignment>
|
||||
<PossiblyInvalidArgument>
|
||||
|
||||
@ -318,14 +318,7 @@ class Header
|
||||
}
|
||||
|
||||
if ($message !== '') {
|
||||
if (isset($GLOBALS['buffer_message'])) {
|
||||
$bufferMessage = $GLOBALS['buffer_message'];
|
||||
}
|
||||
|
||||
$retval .= Generator::getMessage($message);
|
||||
if (isset($bufferMessage)) {
|
||||
$GLOBALS['buffer_message'] = $bufferMessage;
|
||||
}
|
||||
}
|
||||
|
||||
return $retval;
|
||||
|
||||
@ -1358,9 +1358,6 @@ class Sql
|
||||
$scripts->addFile('makegrid.js');
|
||||
$scripts->addFile('sql.js');
|
||||
Current::$message = null;
|
||||
//we don't need to buffer the output in getMessage here.
|
||||
//set a global variable and check against it in the function
|
||||
$GLOBALS['buffer_message'] = false;
|
||||
}
|
||||
|
||||
$previousUpdateQueryHtml = $this->getHtmlForPreviousUpdateQuery(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user