[résolu] un "Duplicate content block" sournois

Note de ce sujet :
  • Moyenne : 0 (0 vote(s))
  • 1
  • 2
  • 3
  • 4
  • 5
#10
C'était mon UDT qui posait problème. J'avais laissé cette ligne

Code :
[== PHP ==]
$smarty = cmsms()->GetSmarty();

et comme le dit la doc

"As of CMSMS version 1.11 it is invalid to overwrite the $smarty object that is passed in to the UDT with the global smarty object.
In example in a User Defined Tag this code is invalid and will cause errors:

$smarty = cmsms()->GetSmarty() "

Tout a l'air de fonctionner avec un scope=global

Merci de m'avoir épaulé et aiguillé vers la solution
MS-Dos, Gem, geoworks, Windows 1, 2, 3, 3.1, 95, 98, XP, seven, 8, 10 Smile
Mac system 1 à 6
Wampserver 3.1.9,
PhP 7.3.5,
CMS version 2.2.11
#10
C'était mon UDT qui posait problème. J'avais laissé cette ligne

Code :
[== PHP ==]
$smarty = cmsms()->GetSmarty();

et comme le dit la doc

"As of CMSMS version 1.11 it is invalid to overwrite the $smarty object that is passed in to the UDT with the global smarty object.
In example in a User Defined Tag this code is invalid and will cause errors:

$smarty = cmsms()->GetSmarty() "

Tout a l'air de fonctionner avec un scope=global

Merci de m'avoir épaulé et aiguillé vers la solution
MS-Dos, Gem, geoworks, Windows 1, 2, 3, 3.1, 95, 98, XP, seven, 8, 10 Smile
Mac system 1 à 6
Wampserver 3.1.9,
PhP 7.3.5,
CMS version 2.2.11


Messages dans ce sujet

Atteindre :


Utilisateur(s) parcourant ce sujet : 1 visiteur(s)