Fatal error: Using $this when not in object context in *****/modules/gdpics/view.php on line 178
I checked around lines 178 on view.php:
// Generate breadcrumbs
if ($display_breadcrumbs=='yes') {
$split = explode('/', $album);
echo '<div class="path"><a href="'.$_SERVER['PHP_SELF'].'">'.$GDTEXT['HOME'].'</a> '.$path_sym.' ';
for ($i = 0; $i < count($split)-1; $i++) {
echo '<a href="'.$_SERVER['PHP_SELF'].'?album=';
for ($j=0; $j < $i+1; $j++) {
echo '' .myurlencode($split[$j]). '/';
}
$temp = str_replace($this->string_search,'',$split[$i]);
echo '">' .$temp. '</a> '.$path_sym.' ';
}
echo '</div>';
}
What's going on here? Everything was working fine until this random error popped up.