Author: Jonathan.Wage
Date: 2010-02-11 14:22:56 +0100 (Thu, 11 Feb 2010)
New Revision: 27889

Modified:
   plugins/sfSympalPlugin/trunk/lib/sfSympalConfiguration.class.php
Log:
[1.4][sfSympalPlugin][1.0] Fix to isEditMode so it is called again after 
content is loaded


Modified: plugins/sfSympalPlugin/trunk/lib/sfSympalConfiguration.class.php
===================================================================
--- plugins/sfSympalPlugin/trunk/lib/sfSympalConfiguration.class.php    
2010-02-11 13:18:18 UTC (rev 27888)
+++ plugins/sfSympalPlugin/trunk/lib/sfSympalConfiguration.class.php    
2010-02-11 13:22:56 UTC (rev 27889)
@@ -62,6 +62,7 @@
     $this->_dispatcher->connect('form.post_configure', array('sfSympalForm', 
'listenToFormPostConfigure'));
     $this->_dispatcher->connect('form.filter_values', array('sfSympalForm', 
'listenToFormFilterValues'));
     $this->_dispatcher->connect('task.cache.clear', array($this, 
'listenToTaskCacheClear'));
+    $this->_dispatcher->connect('sympal.load_content', array($this, 
'listenToSympalLoadContent'));
   }
 
   private function _configureSuperCache()
@@ -98,6 +99,11 @@
     }
   }
 
+  public function listenToSympalLoadContent(sfEvent $event)
+  {
+    sfContext::getInstance()->getUser()->isEditMode(true);
+  }
+
   public function listenToTaskCacheClear(sfEvent $event)
   {
     $event->getSubject()->logSection('sympal', 'Clearing web cache folder');

-- 
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.

Reply via email to