mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 09:56:38 +02:00
MDL-61377 Core: Fixed faulty warning when using progress_bar
This commit is contained in:
parent
a409707794
commit
38b1d6cdd9
1 changed files with 2 additions and 2 deletions
|
@ -4767,8 +4767,8 @@ class progress_bar implements renderable, templatable {
|
||||||
* @param bool $autostart Whether to start the progress bar right away.
|
* @param bool $autostart Whether to start the progress bar right away.
|
||||||
*/
|
*/
|
||||||
public function __construct($htmlid = '', $width = 500, $autostart = false) {
|
public function __construct($htmlid = '', $width = 500, $autostart = false) {
|
||||||
if (!defined('NO_OUTPUT_BUFFERING') || !NO_OUTPUT_BUFFERING) {
|
if (!CLI_SCRIPT && !NO_OUTPUT_BUFFERING) {
|
||||||
debugging('progress_bar used without setting NO_OUTPUT_BUFFERING.', DEBUG_DEVELOPER);
|
debugging('progress_bar used in a non-CLI script without setting NO_OUTPUT_BUFFERING.', DEBUG_DEVELOPER);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($htmlid)) {
|
if (!empty($htmlid)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue