diff --git a/inc/class.tweakstores.php b/inc/class.tweakstores.php index c5ffd41..8b8f39a 100644 --- a/inc/class.tweakstores.php +++ b/inc/class.tweakstores.php @@ -1,16 +1,15 @@ author($module['author']); @@ -150,6 +149,7 @@ class tweakStores } if ($req[0] == 'core') { $module['dc_min'] = $req[1]; + break; } } @@ -195,12 +195,15 @@ class tweakStores if (!empty(self::$failed)) { return false; } + try { files::putContent($module['root'] . '/dcstore.xml', str_replace('><', ">\n<", $content)); - } catch(Exception $e) { + } catch (Exception $e) { self::$failed[] = $e->getMessage(); + return false; } + return true; } -} \ No newline at end of file +}