Browse Source

Add a setter for extensions_enabled config value

Marien Fressinaud 11 years ago
parent
commit
e86a6097c8
1 changed files with 8 additions and 0 deletions
  1. 8 0
      app/Models/ConfigurationSetter.php

+ 8 - 0
app/Models/ConfigurationSetter.php

@@ -67,6 +67,14 @@ class FreshRSS_ConfigurationSetter {
 		}
 	}
 
+	// It works for system config too!
+	private function _extensions_enabled(&$data, $value) {
+		if (!is_array($value)) {
+			$value = array($value);
+		}
+		$data['extensions_enabled'] = $value;
+	}
+
 	private function _html5_notif_timeout(&$data, $value) {
 		$value = intval($value);
 		$data['html5_notif_timeout'] = $value >= 0 ? $value : 0;