]> git.mjollnir.org Git - s9y.git/commitdiff
* Make calendar plugin also accept links to external events
authorgarvinhicking <garvinhicking>
Fri, 4 Nov 2005 18:25:31 +0000 (18:25 +0000)
committergarvinhicking <garvinhicking>
Fri, 4 Nov 2005 18:25:31 +0000 (18:25 +0000)
      (garvinhicking)

docs/NEWS
include/plugin_internal.inc.php

index 8ba3a1d13f7deb0ada6549784de6ece1bf6bf14c..d465d5c1373973d2a1f79863af648b5afc39e274 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,9 @@
 Version 0.9.1 ()
 ------------------------------------------------------------------------
 
+    * Make calendar plugin also accept links to external events
+      (garvinhicking)
+
     * Fix mod_rewrite rules to not differentiate on case-sensitivity for
       authors, archives and category URLs (garvinhicking)
           
index 34f10cb3c39f4a9199d73a0e2cc0872ba4d93d31..0fa5cd8509abc44ffd4fcab75aa2f0c93adfed7c 100644 (file)
@@ -281,6 +281,9 @@ class serendipity_calendar_plugin extends serendipity_plugin {
                         if (isset($externalevents[$currDay]['Title'])) {
                             $cellProps['Title'] = htmlspecialchars($externalevents[$currDay]['Title']);
                         }
+                        if (isset($externalevents[$currDay]['Link'])) {
+                            $cellProps['Link'] = $externalevents[$currDay]['Link'];
+                        }
                     }
 
                     if (isset($activeDays[$currDay]) && $activeDays[$currDay] > 1) {