Author: ornicar2
Date: 2010-01-29 20:58:43 +0100 (Fri, 29 Jan 2010)
New Revision: 27313

Modified:
   
plugins/diemPlugin/trunk/dmFrontPlugin/modules/dmWidget/lib/BasedmWidgetActions.class.php
Log:
[Diem]
- fixed issue when opening a project widget dialog due to recent change in 
naming conventions

Modified: 
plugins/diemPlugin/trunk/dmFrontPlugin/modules/dmWidget/lib/BasedmWidgetActions.class.php
===================================================================
--- 
plugins/diemPlugin/trunk/dmFrontPlugin/modules/dmWidget/lib/BasedmWidgetActions.class.php
   2010-01-29 19:14:05 UTC (rev 27312)
+++ 
plugins/diemPlugin/trunk/dmFrontPlugin/modules/dmWidget/lib/BasedmWidgetActions.class.php
   2010-01-29 19:58:43 UTC (rev 27313)
@@ -104,7 +104,7 @@
     {
       if ($this->getUser()->can('code_editor_view'))
       {
-        $templateDir = dmOs::join(sfConfig::get('sf_app_module_dir'), 
$form->getDmModule()->getKey(), 'templates', 
'_'.$form->getDmAction()->getKey().'.php');
+        $templateDir = dmOs::join(sfConfig::get('sf_app_module_dir'), 
$form->getDmModule()->getKey(), 'templates', 
'_'.$form->getDmComponent()->getKey().'.php');
         if (file_exists($templateDir))
         {
           $devActions .= '<a href="#'.dmProject::unRootify($templateDir).'" 
class="code_editor s16 s16_code_editor 
block">'.$this->getService('i18n')->__('Edit template code').'</a>';
@@ -289,7 +289,7 @@
         throw $e;
       }
 
-      $this->getUser()->logError($this->context->getI18()->__('A problem 
occured when sorting the items'));
+      $this->getUser()->logError($this->getService('i18n')->__('A problem 
occured when sorting the items'));
     }
   }
 }
\ 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.

Reply via email to