Commit c7d0615cf5f0abec9d5922419bc3dd6dd668e63c

Authored by Megan Watson
1 parent 55c23698

KTS-3043

"On reread of plugins the quicklinks plugin is set to disabled"
Fixed. Moved the checks on the end version after an upgrade into the if statement containing the upgrade.

Committed By: Megan Watson
Reviewed By: Conrad Vermeulen

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@8075 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 1 deletions
lib/plugins/plugin.inc.php
@@ -694,7 +694,6 @@ class KTPlugin { @@ -694,7 +694,6 @@ class KTPlugin {
694 // capture the filname version. 694 // capture the filname version.
695 // remember to -start- the upgrade from the "next" version 695 // remember to -start- the upgrade from the "next" version
696 $iEndVersion = $this->upgradePlugin($oEntity->getVersion()+1, $this->iVersion); 696 $iEndVersion = $this->upgradePlugin($oEntity->getVersion()+1, $this->iVersion);
697 - }  
698 697
699 if ($iEndVersion != $this->iVersion) { 698 if ($iEndVersion != $this->iVersion) {
700 // we obviously failed. 699 // we obviously failed.
@@ -716,6 +715,7 @@ class KTPlugin { @@ -716,6 +715,7 @@ class KTPlugin {
716 )); 715 ));
717 716
718 } 717 }
  718 + }
719 /* ** Quick fix for optimisation. Reread must run plugin setup. ** */ 719 /* ** Quick fix for optimisation. Reread must run plugin setup. ** */
720 $this->setup(); 720 $this->setup();
721 return $oEntity; 721 return $oEntity;