From 725611ace4dde73c6f4033ce3d7a82e76e06eb0e Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Mon, 25 May 2020 00:25:02 +0100 Subject: [PATCH] readingtime: remove temporary error_log lines --- modules/feature-readingtime.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/feature-readingtime.php b/modules/feature-readingtime.php index 1ad4174..cef8617 100644 --- a/modules/feature-readingtime.php +++ b/modules/feature-readingtime.php @@ -9,17 +9,14 @@ register_module([ page_renderer::register_part_preprocessor(function(&$parts) { global $env, $settings;; - error_log("[readingtime] part_preprocessor, matching $settings->readingtime_action"); // Only insert for the view action if($env->action !== $settings->readingtime_action || !$settings->readingtime_enabled) return; - error_log("[readingtime] go ahead"); $reading_time = estimate_reading_time( file_get_contents($env->page_filename), $settings->readingtime_language ); - error_log(var_export($reading_time, true)); $insert = "{$reading_time[0]} - {$reading_time[1]} minute read"; if($reading_time[0] === $reading_time[1])