chore: add debug comment to diagnose mode
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -52,11 +52,18 @@ final class ContentAdInjector
|
||||
// Determinar modo de operacion
|
||||
$mode = $this->settings['incontent_advanced']['incontent_mode'] ?? 'paragraphs_only';
|
||||
|
||||
// DEBUG TEMPORAL: Insertar comentario HTML para diagnosticar
|
||||
$debugComment = sprintf(
|
||||
'<!-- ROI_AD_DEBUG: mode=%s, hasIncontentAdvanced=%s -->',
|
||||
$mode,
|
||||
isset($this->settings['incontent_advanced']) ? 'YES' : 'NO'
|
||||
);
|
||||
|
||||
if ($mode === 'paragraphs_only') {
|
||||
return $this->injectParagraphsOnly($content);
|
||||
return $debugComment . $this->injectParagraphsOnly($content);
|
||||
}
|
||||
|
||||
return $this->injectAdvanced($content);
|
||||
return $debugComment . $this->injectAdvanced($content);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user