소스 검색

Anomalie #452: Mail moderation localhost

Sevajol Bastien 11 년 전
부모
커밋
da70122096
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 1
      app/config/config_prod.yml
  2. 3 1
      src/Muzich/CoreBundle/Command/CheckModerateCommand.php

+ 3 - 1
app/config/config_prod.yml 파일 보기

@@ -23,4 +23,6 @@ monolog:
23 23
             level:      debug
24 24
 
25 25
 parameters:
26
-    env: prod
26
+    env: prod
27
+    siteurl:      http://muzi.ch
28
+    siteurl_www:  http://www.muzi.ch

+ 3 - 1
src/Muzich/CoreBundle/Command/CheckModerateCommand.php 파일 보기

@@ -50,6 +50,8 @@ class CheckModerateCommand extends ContainerAwareCommand
50 50
     {
51 51
       $output->writeln('<info>Envoie du courriel ...</info>');
52 52
 
53
+      $website_url = $this->getContainer()->getParameter('siteurl');
54
+      
53 55
       $message = \Swift_Message::newInstance()
54 56
           ->setSubject('Muzi.ch: Contrôle modération')
55 57
           ->setFrom('noreply@muzi.ch')
@@ -58,7 +60,7 @@ class CheckModerateCommand extends ContainerAwareCommand
58 60
             'tags'     => $count_tags,
59 61
             'elements' => $count_elements,
60 62
             'comments' => $count_comments,
61
-            'url'      => $this->getContainer()->get('router')->generate('MuzichAdminBundle_moderate_index', array(), true)
63
+            'url'      => $website_url.$this->getContainer()->get('router')->generate('MuzichAdminBundle_moderate_index', array(), false)
62 64
           )))
63 65
       ;
64 66
       $this->getContainer()->get('mailer')->send($message);