I've come back to using Wiki today (as a pim) after suggesting it today as an intranet application for a client.
However, I'm having trouble with the calendar plug-in though - the main block comes up with prev/next month links, but the dates themselves are just shown as 'Object'. (and having two copies of Pear - one six months old didn't help either).
I'm running the latest CVS of phpWiki and PHP 4.1.1. Do I get to blame dairiki for the OO of the calender plugin, or did I mess it up ? :-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You most certainly do get to blame dairiki. (sorry).
I've just checked the fix into CVS. (I discovered another new bug (also dairiki's fault) while looking into this one...) Here's the two patches, in case you want to do it by hand.
Hi (again, check the history file)
I've come back to using Wiki today (as a pim) after suggesting it today as an intranet application for a client.
However, I'm having trouble with the calendar plug-in though - the main block comes up with prev/next month links, but the dates themselves are just shown as 'Object'. (and having two copies of Pear - one six months old didn't help either).
I'm running the latest CVS of phpWiki and PHP 4.1.1. Do I get to blame dairiki for the OO of the calender plugin, or did I mess it up ? :-)
You most certainly do get to blame dairiki. (sorry).
I've just checked the fix into CVS. (I discovered another new bug (also dairiki's fault) while looking into this one...) Here's the two patches, in case you want to do it by hand.
--- lib/plugin/Calendar.php 2002/01/24 06:52:12 1.11
+++ lib/plugin/Calendar.php 2002/01/26 03:30:23 1.12
@@ -113,7 +113,7 @@
$t['tm_mday']);
}
- return HTML::td(array('align' => 'center'), NBSP . $date . NBSP);
+ return HTML::td(array('align' => 'center'), NBSP, $date, NBSP);
}
function run($dbi, $argstr, $request) {
(i.e. periods change to commas.)
Also:
--- lib/transform.php 2002/01/26 01:51:13 1.36
+++ lib/transform.php 2002/01/26 03:30:23 1.37
@@ -188,7 +188,7 @@
$retval = $this->SetHTMLMode($list_type, 2 * $level - 1);
if ($list_type == 'dl') {
- $retval .= AsXML(HTML::dt($defn_term));
+ $retval .= AsXML(HTML::dt(HTML::raw($defn_term)));
$retval .= $this->SetHTMLMode('dd', 2 * $level);
}
else {
(for proper handling of links, <b> and <i> within definition terms.)
Darn - and I'd just debuged it myself (and removed the NBSP's).
Any chance of highlighting dates-with-entries /and/ today?
Good idea! Done.