![]() |
if conditional in plugin for multiple pages
Guys, is this already correct if conditional in plugin for multiple pages
if the scripts is if (in_array(THIS_SCRIPT, array('index', 'showthread', 'forumdisplay'))) { stuff } if the scripts is not if (!in_array(THIS_SCRIPT, array('index', 'showthread'))) { stuff } thank you before |
I know the first one is valid. The second one is valid except I have no idea if there are any pages with THIS_SCRIPT defined with those values.
|
Quote:
so now the second one is correct too? |
Yes, your second one looks correct also.
|
All times are GMT. The time now is 12:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|