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

docs/NEWS
include/plugin_internal.inc.php

index c0def535c051bc7fef54fcfebce079cd551b9f22..9e410b8de17e97bb637e8578251cf07ca50c5d0a 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -10,6 +10,9 @@ Version 1.0 ()
 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) {