Quote:
Originally Posted by MrNase
Have a look at the $globaltemplates-array() in various vB-files.. there's also a comma at the end
Thank you, I updated the hack and I also updated the code I have installed 
|
True, it is allowed, but not nice coding if you ask me. I guess it is done because it happened too many times that someone added a line and forgot to add a comma to the previous (copying the last line, and only changing names).
This is also why i don't like the layout of the coding. Instead of:
PHP Code:
$myarray = array(
'aa',
'bb',
'cc'
);
I personally prefer:
PHP Code:
$myarray = array(
'aa'
, 'bb'
, 'cc'
);
And for hacks adding new entries to these tables, i would suggest a new line instead of editing the existing code.
So instead of instructions to change:
PHP Code:
$myarray = array(
'aa',
'bb',
'cc'
);
Into:
PHP Code:
$myarray = array(
'aa',
'bb',
'cc' ,
'mynewhackvalue'
);
Just instruct to add the following line immediate after the original:
PHP Code:
$myarray[] = 'mynewhackvalue';
But now we are hijacking a thread.