Author: Jonathan.Wage
Date: 2010-01-19 00:24:08 +0100 (Tue, 19 Jan 2010)
New Revision: 26857
Modified:
plugins/sfSympalPlugin/trunk/lib/helper/SympalMenuHelper.php
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/config/sfSympalEditorPluginConfiguration.class.php
Log:
[1.4][sfSympalPlugin][1.0] Don't show editor for 404
Modified: plugins/sfSympalPlugin/trunk/lib/helper/SympalMenuHelper.php
===================================================================
--- plugins/sfSympalPlugin/trunk/lib/helper/SympalMenuHelper.php
2010-01-18 23:15:18 UTC (rev 26856)
+++ plugins/sfSympalPlugin/trunk/lib/helper/SympalMenuHelper.php
2010-01-18 23:24:08 UTC (rev 26857)
@@ -46,9 +46,10 @@
if ($sympalContext->isAdminModule())
{
$menu->addChild('Go to Site Frontend', '@homepage');
- $menu->addChild('My Dashboard', '@sympal_dashboard');
}
+ $menu->addChild('My Dashboard', '@sympal_dashboard');
+
if (sfSympalConfig::get('page_cache', 'enabled'))
{
$menu->addChild('Clear Cache', '@sympal_clear_cache');
Modified:
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/config/sfSympalEditorPluginConfiguration.class.php
===================================================================
---
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/config/sfSympalEditorPluginConfiguration.class.php
2010-01-18 23:15:18 UTC (rev 26856)
+++
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalEditorPlugin/config/sfSympalEditorPluginConfiguration.class.php
2010-01-18 23:24:08 UTC (rev 26857)
@@ -77,6 +77,11 @@
public function addEditorHtml(sfEvent $event, $content)
{
- return str_replace('</body>', get_sympal_editor().'</body>', $content);
+ if ($event->getSubject()->getStatusCode() != 404)
+ {
+ return str_replace('</body>', get_sympal_editor().'</body>', $content);
+ } else {
+ return $content;
+ }
}
}
\ No newline at end of file
--
You received this message because you are subscribed to the Google Groups
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/symfony-svn?hl=en.