Skip to content

Commit d2fe670

Browse files
committed
Fixed bug
returns the generated code instead of echoing it
1 parent d9e842d commit d2fe670

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

dist/dplayer.zip

794 Bytes
Binary file not shown.

dplayer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static function dplayer_load($atts = [], $content = null, $tag = '') {
103103
$playerCode .= <<<EOF
104104
<script>dPlayerOptions.push({$js});</script>
105105
EOF;
106-
echo $playerCode;
106+
return $playerCode;
107107
}
108108

109109
public static function add_script() {

0 commit comments

Comments
 (0)