]> git.mjollnir.org Git - s9y.git/commitdiff
Document BC break
authorgarvinhicking <garvinhicking>
Fri, 7 Jul 2006 10:46:50 +0000 (10:46 +0000)
committergarvinhicking <garvinhicking>
Fri, 7 Jul 2006 10:46:50 +0000 (10:46 +0000)
docs/NEWS
include/plugin_api.inc.php
serendipity_config.inc.php

index 6c3de928c33d309c4a1bfb9ec435568186cf4051..fe2e2c34ac7a9981ef10aec9584dd7a094ce34ba 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,21 @@
 Version 1.1-alpha7()
 ------------------------------------------------------------------------
 
+    * BC-Break / Plugin API change: The serendipity_getTemplate() file
+      now no longer returns FALSE when a file is not found, but instead
+      the filename without a path. This is required so that the smarty-
+      created error message contains the missing filename instead of an
+      empty '' string.
+      Plugins based on this function need to make sure that they will
+      now properly use a file_exists() check on the returned function,
+      if they want to probe different locations of a file.
+      All template files containing the string "plugin" will still return
+      FALSE for the function call, to circumvent problems with spartacus
+      plugins.
+      Bottom line: Plugins that use "*plugin*.tpl" filenames or check
+      via file_exists() on the returned variable are safe.
+      (garvinhicking)
+      
     * Added arabic (sa) language by Way
 
     * Add patch to allow entryproperties plugin to define passwords for
index b55889e0edbee488241e88d73dd99ee5c3b9227d..42a9a003d221bbfd4dcd66c67240f702ef0d8dcd 100644 (file)
@@ -922,7 +922,6 @@ class serendipity_plugin_api {
         }
 
         $plugins = serendipity_plugin_api::enum_plugins('event');
-
         if (!is_array($plugins)) {
             return $false;
         }
index 4b99b444633b42299c0bbc26d98298fc95f9db01..21e45f6c2ae90ccb6417c3192b9240c627c2703f 100644 (file)
@@ -344,7 +344,6 @@ if (isset($_SESSION['serendipityUser'])) {
 if (isset($_SESSION['serendipityEmail'])) {
     $serendipity['email'] = $_SESSION['serendipityEmail'];
 }
-
 serendipity_plugin_api::hook_event('frontend_configure', $serendipity);
 
 /* vim: set sts=4 ts=4 expandtab : */