]> git.mjollnir.org Git - s9y.git/commitdiff
Set the 'view' variable to 'plugin' when event plugins take on a full entry page
authorgarvinhicking <garvinhicking>
Mon, 9 Oct 2006 11:00:17 +0000 (11:00 +0000)
committergarvinhicking <garvinhicking>
Mon, 9 Oct 2006 11:00:17 +0000 (11:00 +0000)
include/functions_entries.inc.php

index 7282df82f9cd97f070a27e5655fb7cdc225a7b92..dafdcab79bb8e3de2be79654370c2141d54305a4 100644 (file)
@@ -871,7 +871,14 @@ function serendipity_printEntries($entries, $extended = 0, $preview = false, $sm
         serendipity_plugin_api::hook_event('entry_display', $entries, $addData);
 
         if (isset($entries['clean_page']) && $entries['clean_page'] === true) {
-            $serendipity['smarty']->assign('plugin_clean_page', true);
+            if ($serendipity['view'] == '404') {
+                $serendipity['view'] = 'plugin';
+            }
+
+            $serendipity['smarty']->assign(array(
+                'plugin_clean_page' => true,
+                'view'              => $serendipity['view'])
+            );
             serendipity_smarty_fetch($smarty_block, 'entries.tpl', true);
             return; // no display of this item
         }
@@ -1127,7 +1134,7 @@ function serendipity_updertEntry($entry) {
     if (isset($entry['properties'])) {
         unset($entry['properties']);
     }
-    
+
     if (!is_numeric($entry['timestamp'])) {
         $entry['timestamp'] = time();
     }