Fatal error: Call to undefined function cal_sql_get_all_global_holidays_do() in
/path/to/example.org/plugins/calendar_sql_backend/setup.php on line 523

is this only working on the file-based backed ?

or is it my setup somewhere that is brokken ?
I was quite surprised when this happened to me. I seem to remember that it took me a while to figure out that it was just unfinished, and I removed the code in question.

Try attached patch, or adapt it to your version of


Niether.  It is an unfinished feature.
I love this plugin! And I greatly value all your contributions - squirrelmail is my web mail solution of choice! But may I suggest that unfinished features be turned off in released plugins so production sites don't suffer from sql errors ;-)


Johannes
diff -uNr squirrelmail.orig/plugins/calendar/interface/admin_interface.php 
squirrelmail/plugins/calendar/interface/admin_interface.php
--- squirrelmail.orig/plugins/calendar/interface/admin_interface.php    
2005-03-28 11:28:49.000000000 +0200
+++ squirrelmail/plugins/calendar/interface/admin_interface.php 2005-10-31 
03:37:03.490794136 +0100
@@ -230,9 +230,8 @@
          . "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td 
width=\"25%\">&nbsp;</td>"
          . "<td align=\"center\"><b>" . $calendar->getName() 
          . ($calendar->getCalendarType() == SM_CAL_TYPE_PUBLIC ? 
'&nbsp;&nbsp;(' . _("Public") . ')' : '') 
-         . "</b></td><td width=\"25%\" align=\"right\"><small><a 
href=\"admin_options.php?cal_action="
-         . SM_CAL_EDIT_HOLIDAYS . "&calID=" . $calendar->getID() . "\">" . 
_("Edit Holidays") 
-         . "</a></small></td></tr></table></td></tr><tr><td colspan=\"3\">\n"
+         . "</b></td>"
+         . "</tr></table></td></tr><tr><td colspan=\"3\">\n"
          . "<table width=\"100%\" bgcolor=\"" . $color[4] . "\">\n"
          . "<tr bgcolor=\"" . $color[5] . "\"><td>&nbsp;</td><td width=\"100\" 
nowrap><b>" . _("User") 
          . "</b></td><td><b>" . _("Access Level") . "</b></td></tr>\n";
@@ -370,9 +369,8 @@
          . "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tr><td 
width=\"25%\">&nbsp;</td>"
          . "<td align=\"center\"><b>" . $calendar->name
          . ($calendar->getCalendarType() == SM_CAL_TYPE_PUBLIC ? 
'&nbsp;&nbsp;(' . _("Public") . ')' : '')
-         . "</b></td><td width=\"25%\" align=\"right\"><small><a 
href=\"admin_options.php?cal_action="
-         . SM_CAL_EDIT_HOLIDAYS . "&calID=" . $calendar->getID() . "\">" . 
_("Edit Holidays")
-         . "</a></small></td></tr></table></td></tr><tr><td colspan=\"3\">\n"
+         . "</b></td>"
+         . "</tr></table></td></tr><tr><td colspan=\"3\">\n"
          . "<table width=\"100%\" bgcolor=\"" . $color[4] . "\">\n"
          . "<tr bgcolor=\"" . $color[5] . "\"><td>&nbsp;</td><td width=\"100\" 
nowrap><b>" . _("User")
          . "</b></td><td><b>" . _("Access Level") . "</b></td></tr>\n";
diff -uNr squirrelmail.orig/plugins/calendar/interface/calendar.php 
squirrelmail/plugins/calendar/interface/calendar.php
--- squirrelmail.orig/plugins/calendar/interface/calendar.php   2005-02-02 
10:02:46.000000000 +0100
+++ squirrelmail/plugins/calendar/interface/calendar.php        2005-10-31 
03:39:28.044818584 +0100
@@ -66,11 +66,8 @@
       . "\" border=\"0\" width=\"100%\" cellspacing=\"0\" "
       . "cellpadding=\"2\">"
       . "<tr><td width=\"15%\"></td><td align=\"center\"><h3>" . 
$calendar->getName()
-      . "</h3></td><td valign=\"top\" width=\"15%\" align=\"right\">"
-      . ($calendar->getCalendarType() == SM_CAL_TYPE_PERSONAL 
-      ? "<small><a href=\"admin_options.php?cal_action="
-      . SM_CAL_EDIT_HOLIDAYS . "&calID=" . urlencode($calendar->getID()) . 
"\">" ._("Edit Holidays") 
-      . "</a></small>" : '') . "</td></tr></table>\n";
+      . "</h3></td>"
+      . "</tr></table>\n";
 
 
    bindtextdomain ('squirrelmail', SM_PATH . 'locale');

Reply via email to