summaryrefslogtreecommitdiff
path: root/classes/sanitizer.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-20 22:39:41 +0300
committerAndrew Dolgov <[email protected]>2023-10-20 22:39:41 +0300
commitd3fadc0bd0256697e4a8e9a445d48d9620339f04 (patch)
treee057b3dec2303faec913dc876b52340cabbe7877 /classes/sanitizer.php
parentbf6e3c381b31d71113dae521784c4f9b00f22de3 (diff)
stop calling spans scopes
Diffstat (limited to 'classes/sanitizer.php')
-rw-r--r--classes/sanitizer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/sanitizer.php b/classes/sanitizer.php
index 68bb91b9f..a7bea9e5f 100644
--- a/classes/sanitizer.php
+++ b/classes/sanitizer.php
@@ -63,8 +63,8 @@ class Sanitizer {
* @return false|string The HTML, or false if an error occurred.
*/
public static function sanitize(string $str, ?bool $force_remove_images = false, int $owner = null, string $site_url = null, array $highlight_words = null, int $article_id = null) {
- $scope = OpenTelemetry\API\Trace\Span::getCurrent();
- $scope->addEvent("Sanitizer::sanitize");
+ $span = OpenTelemetry\API\Trace\Span::getCurrent();
+ $span->addEvent("Sanitizer::sanitize");
if (!$owner && isset($_SESSION["uid"]))
$owner = $_SESSION["uid"];