[eluser]Phil Sturgeon[/eluser]
Was using word_wrap and got a strange error:
Quote:Fatal error: Using $this when not in object context in P:\Web Sites\kicknote\system\helpers\text_helper.php on line 395
Downloaded a fresh version of the text helper just to make sure it wasnt destroyed during some of my awesome 'Find & Replace Coding' and its in there too...
Code:
// If $temp contains data it means we had to split up an over-length
// word into smaller chunks so we'll add it back to our current line
if ($temp != '')
{
$output .= $temp.$this->newline.$line;
}
else
{
$output .= $line;
}
I cant seem to work out what the hell $this->newline is doing there. Its causing an error and I can see no reason why it should be there. $newline doesnt exist, $this isnt declared, its not in a function... what in the hell?