@@ -90,9 +90,6 @@ public function update($installer)
9090 // Informational log only
9191 }
9292
93- // Uninstall plugins before removing their files and folders
94- $ this ->uninstallEosPlugin ();
95-
9693 // This needs to stay for 2.5 update compatibility
9794 $ this ->deleteUnexistingFiles ();
9895 $ this ->updateManifestCaches ();
@@ -204,53 +201,6 @@ protected function updateDatabaseMysql()
204201 }
205202 }
206203
207- /**
208- * Uninstall the 3.10 EOS plugin
209- *
210- * @return void
211- *
212- * @since 4.0.0
213- */
214- protected function uninstallEosPlugin ()
215- {
216- $ db = Factory::getDbo ();
217-
218- // Check if the plg_quickicon_eos310 plugin is present
219- $ extensionId = $ db ->setQuery (
220- $ db ->getQuery (true )
221- ->select ('extension_id ' )
222- ->from ('#__extensions ' )
223- ->where ('name = ' . $ db ->quote ('plg_quickicon_eos310 ' ))
224- )->loadResult ();
225-
226- // Skip uninstalling if it doesn't exist
227- if (!$ extensionId ) {
228- return ;
229- }
230-
231- try {
232- $ db ->transactionStart ();
233-
234- // Unprotect the plugin so we can uninstall it
235- $ db ->setQuery (
236- $ db ->getQuery (true )
237- ->update ('#__extensions ' )
238- ->set ('protected = 0 ' )
239- ->where ($ db ->quoteName ('extension_id ' ) . ' = ' . $ extensionId )
240- )->execute ();
241-
242- // Uninstall the plugin
243- $ installer = new Installer ();
244- $ installer ->setDatabase ($ db );
245- $ installer ->uninstall ('plugin ' , $ extensionId );
246-
247- $ db ->transactionCommit ();
248- } catch (\Exception $ e ) {
249- $ db ->transactionRollback ();
250- throw $ e ;
251- }
252- }
253-
254204 /**
255205 * Update the manifest caches
256206 *
0 commit comments