File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed
wa-apps/installer/lib/config
templates/actions-legacy/profile Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 44 'description ' => 'Install new apps from the Webasyst Store ' ,
55 'icon ' => 'img/installer.svg ' ,
66 'mobile ' => false ,
7- 'version ' => '2.8.0 ' ,
8- 'critical ' => '2.8.0 ' ,
7+ 'version ' => '2.8.1 ' ,
8+ 'critical ' => '2.8.1 ' ,
99 'system ' => true ,
1010 'vendor ' => 'webasyst ' ,
1111 'csrf ' => true ,
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ class webasystProfilePhotoAction extends waViewAction
77 public function execute ()
88 {
99 $ id = waRequest::request ('id ' , wa ()->getUser ()->getId (), 'int ' );
10- $ ui = waRequest::request ('id ' , ' 1.3 ' , 'int ' );
10+ $ ui = waRequest::request ('ui ' , null , 'string ' );
1111 $ contact = new waContact ($ id );
1212
1313 // If there is a photo for this contact, show it to crop
@@ -18,10 +18,8 @@ public function execute()
1818 $ oldImage = $ contact ->getPhoto ('original ' );
1919 }
2020
21- if ($ ui === '1.3 ' ) {
22- $ this ->setTemplate ('templates/actions-legacy/profile/ProfilePhoto.html ' );
23- }else {
24- $ this ->setTemplate ('templates/actions/profile/ProfilePhoto.html ' );
21+ if (!empty ($ ui ) && $ ui != wa ()->whichUI ()) {
22+ waRequest::SetParam ('force_ui_version ' , $ ui );
2523 }
2624
2725 $ this ->view ->assign (array (
Original file line number Diff line number Diff line change 33return array (
44 'name ' => 'Webasyst ' ,
55 'prefix ' => 'webasyst ' ,
6- 'version ' => '2.8.0 ' ,
7- 'critical ' => '2.8.0 ' ,
6+ 'version ' => '2.8.1 ' ,
7+ 'critical ' => '2.8.1 ' ,
88 'vendor ' => 'webasyst ' ,
99 'csrf ' => true ,
1010 'header_items ' => array (
Original file line number Diff line number Diff line change 134134 $ ( '#contact-photo-crop-dialog' ) . remove ( ) ;
135135 $ ( '<div id="contact-photo-crop-dialog">' ) . appendTo ( $wrapper ) . waDialog ( {
136136 'class' : 'large' ,
137- url : "?module=profile&action=photo" ,
137+ url : "?module=profile&action=photo&ui=1.3 " ,
138138 onLoad : function ( d ) {
139139 // move buttons where appropriate
140140 var $dialog = $ ( this ) ;
You can’t perform that action at this time.
0 commit comments