@@ -1572,7 +1572,7 @@ public function createSharedMinisite($httpVars, $repository, $accessDriver)
1572
1572
if (isset ($ existingData )){
1573
1573
$ repo = ConfService::getRepositoryById ($ existingData ["REPOSITORY " ]);
1574
1574
if ($ repo == null ) throw new Exception ("Oups, something went wrong " );
1575
- $ this ->shareStore ->testUserCanEditShare ($ repo ->getOwner ());
1575
+ $ this ->getShareStore () ->testUserCanEditShare ($ repo ->getOwner ());
1576
1576
$ data = $ existingData ;
1577
1577
}else {
1578
1578
$ data = array (
@@ -1828,7 +1828,7 @@ public function createSharedRepository($httpVars, $repository, $accessDriver, $u
1828
1828
$ options ["PLUGINS_DATA " ] = $ customData ;
1829
1829
}
1830
1830
if (isSet ($ editingRepo )) {
1831
- $ this ->shareStore ->testUserCanEditShare ($ editingRepo ->getOwner ());
1831
+ $ this ->getShareStore () ->testUserCanEditShare ($ editingRepo ->getOwner ());
1832
1832
$ newRepo = $ editingRepo ;
1833
1833
$ replace = false ;
1834
1834
if ($ editingRepo ->getDisplay () != $ label ) {
@@ -2462,7 +2462,7 @@ public function shareToJson($shareId, $shareData, $node = null){
2462
2462
"expire_time " => ($ pData ["EXPIRE_TIME " ]!=0 ?date ($ messages ["date_format " ], $ pData ["EXPIRE_TIME " ]):0 ),
2463
2463
"has_password " => (!empty ($ pData ["PASSWORD " ])),
2464
2464
"element_watch " => $ elementWatch ,
2465
- "is_expired " => $ this ->shareStore ->isShareExpired ($ shareId , $ pData )
2465
+ "is_expired " => $ this ->getShareStore () ->isShareExpired ($ shareId , $ pData )
2466
2466
), $ shareData );
2467
2467
2468
2468
@@ -2518,7 +2518,7 @@ public function shareToJson($shareId, $shareData, $node = null){
2518
2518
);
2519
2519
}
2520
2520
if ($ node != null ){
2521
- $ sharedEntries = $ this ->computeSharedRepositoryAccessRights ($ repoId , true , $ node -> getUrl () );
2521
+ $ sharedEntries = $ this ->computeSharedRepositoryAccessRights ($ repoId , true , " pydio:// " . $ repoId . " / " );
2522
2522
}else {
2523
2523
$ sharedEntries = $ this ->computeSharedRepositoryAccessRights ($ repoId , true , null );
2524
2524
}
@@ -2550,7 +2550,7 @@ public function shareToJson($shareId, $shareData, $node = null){
2550
2550
}else {
2551
2551
$ jsonData ["expire_after " ] = 0 ;
2552
2552
}
2553
- $ jsonData ["is_expired " ] = $ this ->shareStore ->isShareExpired ($ shareId , $ minisiteData );
2553
+ $ jsonData ["is_expired " ] = $ this ->getShareStore () ->isShareExpired ($ shareId , $ minisiteData );
2554
2554
if (isSet ($ minisiteData ["AJXP_TEMPLATE_NAME " ])){
2555
2555
$ jsonData ["minisite_layout " ] = $ minisiteData ["AJXP_TEMPLATE_NAME " ];
2556
2556
}
0 commit comments