Truth be told, I'm working within a Drupal site, trying to modify existing functions. I'm still new to the site I'm working on, so I'm not totally familiar with all the workings. (I've been playing a lot of function tag lately...)
The HTML output is
<a href="/calendar_ev/2008/12/29%3Fmini%3D2008/12">29</a>
Which is less than desirable for me.
The return snippet is
PHP Code:
if ($selected) {
return '<div class="mini-day-on">'. l($day, $mini_url, NULL, $append) .'</div>';
}
In this case, $append is an empty variable.
Would the proper way to use urldecode be:
PHP Code:
$date_query = $url .'/'. $year .'/'. $month .'/'. $day;
$date_path_array[] = $date_query;
$date_path_array[] = 'mini=' . $year .'/'. $month;
$mini_url = urldecode(implode('?', $date_path_array));
?
Thanks, I'm no coder by training. I just happen to know enough so that I was asked to fix up a website, and it's been making my life difficult :P
Bookmarks