From 80e5e4ba2faea909753fcae960e752797e912dc0 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Sat, 16 May 2026 13:43:47 +0100 Subject: Move plugins to correct namespace --- plugins/data.attachment.php | 4 +++- plugins/data.code.php | 9 +++++++-- plugins/data.creationtime.php | 4 +++- plugins/data.div.php | 3 ++- plugins/data.img.php | 4 +++- 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/plugins/data.attachment.php b/plugins/data.attachment.php index b3fcc68..5ba05e6 100755 --- a/plugins/data.attachment.php +++ b/plugins/data.attachment.php @@ -1,7 +1,9 @@ $code"; + // highlight_string() already wraps in
 in PHP 8.x
+		if( strpos( $code, '
' ) === false ) {
+			$code = "
$code
"; + } } return ( !empty( $title ) ? '

'.$title.'

' : "" )."
".$code."
"; diff --git a/plugins/data.creationtime.php b/plugins/data.creationtime.php index ea3a848..4019888 100755 --- a/plugins/data.creationtime.php +++ b/plugins/data.creationtime.php @@ -1,6 +1,8 @@