This topic is locked
[SOLVED]

 Code to set project logo causes undefined constant warning

11/19/2019 3:07:17 PM
PHPRunner General questions
A
alang author

Following the manual to set the project logo in the AfterAppInit event code caused a warning message ".. Use of undefined constant Labels .."
It worked fine on my test system (Windows/XAMPP) but gave the warning on the target system (Linux/Nginx) - possibly due to different PHP versions?
Anyway from what I can see the manual says: Labels.setProjectLogo

and it should be: Labels::setProjectLogo
Just a few dots missing? <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=26912&image=1&table=forumtopics' class='bbc_emoticon' alt=':)' />

Sergey Kornilov admin 11/20/2019

Yes, the correct syntax is Label::setProjectLogo