Forum Moderators: coopster
class Listings
{
function sort_files($list, $link_template)
{
// sort array into url and presentation
foreach($list as $value)
{
// remove directory self and parent
if (($value == "")¦¦($value == ".")¦¦($value == ".."))
{
$new_list = $new_list.($this.make_url($value, $value, $link_template));
}
}
return $new_list;
}function make_url($url, $link, $template)
{
$template = str_replace("{TAG:URL;}", $url, $template);
$template = str_replace("{TAG:LINK;}", $link, $template);
return $template;
}
}
i have removed everything irrelevant from the class to make it more clear.
The problem lies in the following line:
$new_list = $new_list.($this.make_url($value, $value, $link_template));
maybe its $this but im not sure, i thought $this referred to the same class..the error i get is this:
Fatal error: Call to undefined function: make_url()
obviously i removed the line number and other info as its irrelevant.
Any ideas? any help would be greatly appreciated, im sure its a small problem ;)