diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-06 12:38:59 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-10-17 12:22:26 +0200 |
commit | 93b0f1a3bff98f3b9aa9f2e0ca2db4bc23ca3746 (patch) | |
tree | 69c18c9a69eec1f74fdf4755886ecb7b95e88cdb /lib/private/repair.php | |
parent | 688a141586dad961b24b364e79cd11c1aa343730 (diff) | |
download | nextcloud-server-93b0f1a3bff98f3b9aa9f2e0ca2db4bc23ca3746.tar.gz nextcloud-server-93b0f1a3bff98f3b9aa9f2e0ca2db4bc23ca3746.zip |
adding cssmin and jssmin(minify)
adding argument deleteSelf to rmdirr() - if false the directory itself will not be deleted only it's content
adding repair step to clean the asset cache after upgrade + coding style adjustments
Diffstat (limited to 'lib/private/repair.php')
-rw-r--r-- | lib/private/repair.php | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/lib/private/repair.php b/lib/private/repair.php index c7db8b2617d..081aeb32c66 100644 --- a/lib/private/repair.php +++ b/lib/private/repair.php @@ -10,6 +10,13 @@ namespace OC; use OC\Hooks\BasicEmitter; use OC\Hooks\Emitter; +use OC\Repair\AssetCache; +use OC\Repair\Collation; +use OC\Repair\InnoDB; +use OC\Repair\RepairConfig; +use OC\Repair\RepairLegacyStorages; +use OC\Repair\RepairMimeTypes; +use OC\Repair\SearchLuceneTables; class Repair extends BasicEmitter { /** @@ -69,9 +76,10 @@ class Repair extends BasicEmitter { */ public static function getRepairSteps() { return array( - new \OC\Repair\RepairMimeTypes(), - new \OC\Repair\RepairLegacyStorages(\OC::$server->getConfig(), \OC_DB::getConnection()), - new \OC\Repair\RepairConfig(), + new RepairMimeTypes(), + new RepairLegacyStorages(\OC::$server->getConfig(), \OC_DB::getConnection()), + new RepairConfig(), + new AssetCache() ); } @@ -83,14 +91,14 @@ class Repair extends BasicEmitter { */ public static function getBeforeUpgradeRepairSteps() { $steps = array( - new \OC\Repair\InnoDB(), - new \OC\Repair\Collation(\OC::$server->getConfig(), \OC_DB::getConnection()), - new \OC\Repair\SearchLuceneTables() + new InnoDB(), + new Collation(\OC::$server->getConfig(), \OC_DB::getConnection()), + new SearchLuceneTables() ); //There is no need to delete all previews on every single update - //only 7.0.0 thru 7.0.2 generated broken previews - $currentVersion = \OC_Config::getValue('version'); + //only 7.0.0 through 7.0.2 generated broken previews + $currentVersion = \OC::$server->getConfig()->getSystemValue('version'); if (version_compare($currentVersion, '7.0.0.0', '>=') && version_compare($currentVersion, '7.0.2.2', '<=')) { $steps[] = new \OC\Repair\Preview(); @@ -102,7 +110,7 @@ class Repair extends BasicEmitter { /** * {@inheritDoc} * - * Redeclared as public to allow invocation from within the closure above in php 5.3 + * Re-declared as public to allow invocation from within the closure above in php 5.3 */ public function emit($scope, $method, $arguments = array()) { parent::emit($scope, $method, $arguments); |