Quote:
Originally Posted by Mickie D
(i think it works lol)
|
Better change it to this:
Code:
$thisscriptis = array(
'editpost',
'register',
'newreply',
'newthread',
'sendmessage'
);
if (!in_array(THIS_SCRIPT, $thisscriptis))
{
$patterns = array('/\>\s+\</', '/^\s*/m');
$replace = array('> <', '');
$vartext = preg_replace($patterns, $replace, $vartext);
}
else
{
$vartext = preg_replace('/\>\s+\</', '> <', $vartext);
}