r13894: undefined function displayInternalLink

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

after activating the calendar plugin, clicking on "Calendar" on the top
gives:

   Call to undefined function displayInternalLink

I'm currently on r13894 and don't know when this function has been removed 
from page_header.php[0], but since it's only used in 
plugins/calendar/functions.php anyway, we might as well just define it 
there:

--- plugins/calendar/functions.php.orig	2010-01-27 14:04:41.203362743 +0100
+++ plugins/calendar/functions.php	2010-01-27 14:07:53.745862849 +0100
@@ -26,6 +26,14 @@ function calendar_do() {
 }
 
 /**
+ * Helper function for calendar_header()
+ *
+ */
+function displayInternalLink($path, $text, $target='') {
+	echo makeInternalLink($path, $text, $target);
+}
+
+/**
  * Adds second layer of calendar links to upper menu
  * @return void
  */


Works for me, but maybe some PHP programmer will comment on that and 
propose something more sensible :-)

Thanks,
Christian.

[0] http://bit.ly/b7LFjL
-- 
BOFH excuse #235:

The new frame relay network hasn't bedded down the software loop transmitter yet.

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux