![]() |
Is there a more efficient way to write this code?
I have a plugin I am using in two different locations, however it essentially does the exact same thing for each location with the exception that it pulls data from a different array to set the DM.
PHP Code:
PHP Code:
Thanks! |
THIS_SCRIPT == 'editpost' OR THIS_SCRIPT == 'newthread'
maybe? |
Put the code in a function and pass the array to be used as argument.
|
A function is another way of handling it, but actually the way I solved it was by simply using a new var like this:
PHP Code:
|
All times are GMT. The time now is 02:40 AM. |
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:
|