File tree Expand file tree Collapse file tree
core/components/sitedashclient Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ - Fix updating packages on MODX 3 (tested with alpha2)
2+
13SiteDash Client 1.3.2-pl
24-------------------------
35Released on 2020-03-27
Original file line number Diff line number Diff line change @@ -70,13 +70,13 @@ protected function getUpdate() {
7070 'signature ' => $ this ->packageSignature ,
7171 ]);
7272
73- if (!$ this ->package instanceof \modTransportPackage ) {
73+ if (!$ this ->package ) {
7474 throw new \RuntimeException ('Package does not seem to be installed; can only update packages that are already installed. ' );
7575 }
7676 $ this ->log ('Found package ' . $ this ->package ->get ('signature ' ));
7777
7878 $ this ->provider =& $ this ->package ->getOne ('Provider ' );
79- if (!$ this ->provider instanceof \modTransportProvider ) {
79+ if (!$ this ->provider ) {
8080 throw new \RuntimeException ('Package does not have an associated package provider; can \'t update. ' );
8181 }
8282 $ un = $ this ->provider ->get ('username ' );
You can’t perform that action at this time.
0 commit comments