@@ -33,7 +33,7 @@ public function index() {
3333 */
3434 public function view ($ id = null ) {
3535 if (empty ($ id ) || !($ cronTask = $ this ->CronTask ->find ('first ' , array ('conditions ' => array ('CronTask.id ' => $ id ))))) {
36- $ this ->Common ->flashMessage (__ ( 'invalid record ' ), 'error ' );
36+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'invalid record ' ), 'error ' );
3737 return $ this ->Common ->autoRedirect (array ('action ' => 'index ' ));
3838 }
3939 $ this ->set (compact ('cronTask ' ));
@@ -49,10 +49,10 @@ public function add() {
4949 $ this ->CronTask ->create ();
5050 if ($ this ->CronTask ->save ($ this ->request ->data )) {
5151 $ var = $ this ->request ->data ['CronTask ' ]['title ' ];
52- $ this ->Common ->flashMessage (__ ( 'record add %s saved ' , h ($ var )), 'success ' );
52+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'record add %s saved ' , h ($ var )), 'success ' );
5353 return $ this ->Common ->postRedirect (array ('action ' => 'index ' ));
5454 } else {
55- $ this ->Common ->flashMessage (__ ( 'formContainsErrors ' ), 'error ' );
55+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'formContainsErrors ' ), 'error ' );
5656 }
5757 }
5858 }
@@ -65,16 +65,16 @@ public function add() {
6565 */
6666 public function edit ($ id = null ) {
6767 if (empty ($ id ) || !($ cronTask = $ this ->CronTask ->find ('first ' , array ('conditions ' => array ('CronTask.id ' => $ id ))))) {
68- $ this ->Common ->flashMessage (__ ( 'invalid record ' ), 'error ' );
68+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'invalid record ' ), 'error ' );
6969 return $ this ->Common ->autoRedirect (array ('action ' => 'index ' ));
7070 }
7171 if ($ this ->Common ->isPosted ()) {
7272 if ($ this ->CronTask ->save ($ this ->request ->data )) {
7373 $ var = $ this ->request ->data ['CronTask ' ]['title ' ];
74- $ this ->Common ->flashMessage (__ ( 'record edit %s saved ' , h ($ var )), 'success ' );
74+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'record edit %s saved ' , h ($ var )), 'success ' );
7575 return $ this ->Common ->postRedirect (array ('action ' => 'index ' ));
7676 } else {
77- $ this ->Common ->flashMessage (__ ( 'formContainsErrors ' ), 'error ' );
77+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'formContainsErrors ' ), 'error ' );
7878 }
7979 }
8080 if (empty ($ this ->request ->data )) {
@@ -94,16 +94,16 @@ public function delete($id = null) {
9494 throw new MethodNotAllowedException ();
9595 }
9696 if (empty ($ id ) || !($ cronTask = $ this ->CronTask ->find ('first ' , array ('conditions ' => array ('CronTask.id ' => $ id ), 'fields ' => array ('id ' , 'title ' ))))) {
97- $ this ->Common ->flashMessage (__ ( 'invalid record ' ), 'error ' );
97+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'invalid record ' ), 'error ' );
9898 return $ this ->Common ->autoRedirect (array ('action ' => 'index ' ));
9999 }
100100 $ var = $ cronTask ['CronTask ' ]['title ' ];
101101
102102 if ($ this ->CronTask ->delete ($ id )) {
103- $ this ->Common ->flashMessage (__ ( 'record del %s done ' , h ($ var )), 'success ' );
103+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'record del %s done ' , h ($ var )), 'success ' );
104104 return $ this ->redirect (array ('action ' => 'index ' ));
105105 }
106- $ this ->Common ->flashMessage (__ ( 'record del %s not done exception ' , h ($ var )), 'error ' );
106+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'record del %s not done exception ' , h ($ var )), 'error ' );
107107 return $ this ->Common ->autoRedirect (array ('action ' => 'index ' ));
108108 }
109109
@@ -126,7 +126,7 @@ public function admin_index() {
126126 */
127127 public function admin_view ($ id = null ) {
128128 if (empty ($ id ) || !($ cronTask = $ this ->CronTask ->find ('first ' , array ('conditions ' => array ('CronTask.id ' => $ id ))))) {
129- $ this ->Common ->flashMessage (__ ( 'invalid record ' ), 'error ' );
129+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'invalid record ' ), 'error ' );
130130 return $ this ->Common ->autoRedirect (array ('action ' => 'index ' ));
131131 }
132132 $ this ->set (compact ('cronTask ' ));
@@ -142,10 +142,10 @@ public function admin_add() {
142142 $ this ->CronTask ->create ();
143143 if ($ this ->CronTask ->save ($ this ->request ->data )) {
144144 $ var = $ this ->request ->data ['CronTask ' ]['title ' ];
145- $ this ->Common ->flashMessage (__ ( 'record add %s saved ' , h ($ var )), 'success ' );
145+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'record add %s saved ' , h ($ var )), 'success ' );
146146 return $ this ->Common ->postRedirect (array ('action ' => 'index ' ));
147147 } else {
148- $ this ->Common ->flashMessage (__ ( 'formContainsErrors ' ), 'error ' );
148+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'formContainsErrors ' ), 'error ' );
149149 }
150150 }
151151 }
@@ -158,16 +158,16 @@ public function admin_add() {
158158 */
159159 public function admin_edit ($ id = null ) {
160160 if (empty ($ id ) || !($ cronTask = $ this ->CronTask ->find ('first ' , array ('conditions ' => array ('CronTask.id ' => $ id ))))) {
161- $ this ->Common ->flashMessage (__ ( 'invalid record ' ), 'error ' );
161+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'invalid record ' ), 'error ' );
162162 return $ this ->Common ->autoRedirect (array ('action ' => 'index ' ));
163163 }
164164 if ($ this ->Common ->isPosted ()) {
165165 if ($ this ->CronTask ->save ($ this ->request ->data )) {
166166 $ var = $ this ->request ->data ['CronTask ' ]['title ' ];
167- $ this ->Common ->flashMessage (__ ( 'record edit %s saved ' , h ($ var )), 'success ' );
167+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'record edit %s saved ' , h ($ var )), 'success ' );
168168 return $ this ->Common ->postRedirect (array ('action ' => 'index ' ));
169169 } else {
170- $ this ->Common ->flashMessage (__ ( 'formContainsErrors ' ), 'error ' );
170+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'formContainsErrors ' ), 'error ' );
171171 }
172172 }
173173 if (empty ($ this ->request ->data )) {
@@ -186,16 +186,16 @@ public function admin_delete($id = null) {
186186 throw new MethodNotAllowedException ();
187187 }
188188 if (empty ($ id ) || !($ cronTask = $ this ->CronTask ->find ('first ' , array ('conditions ' => array ('CronTask.id ' => $ id ), 'fields ' => array ('id ' , 'title ' ))))) {
189- $ this ->Common ->flashMessage (__ ( 'invalid record ' ), 'error ' );
189+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'invalid record ' ), 'error ' );
190190 return $ this ->Common ->autoRedirect (array ('action ' => 'index ' ));
191191 }
192192 $ var = $ cronTask ['CronTask ' ]['title ' ];
193193
194194 if ($ this ->CronTask ->delete ($ id )) {
195- $ this ->Common ->flashMessage (__ ( 'record del %s done ' , h ($ var )), 'success ' );
195+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'record del %s done ' , h ($ var )), 'success ' );
196196 return $ this ->redirect (array ('action ' => 'index ' ));
197197 }
198- $ this ->Common ->flashMessage (__ ( 'record del %s not done exception ' , h ($ var )), 'error ' );
198+ $ this ->Common ->flashMessage (__d ( ' queue ' , 'record del %s not done exception ' , h ($ var )), 'error ' );
199199 return $ this ->Common ->autoRedirect (array ('action ' => 'index ' ));
200200 }
201201
0 commit comments