Parcourir la source

Call handleConfigureAction() even for GET requests

See https://github.com/FreshRSS/FreshRSS/issues/252
Marien Fressinaud il y a 11 ans
Parent
commit
5bd7997d41
2 fichiers modifiés avec 2 ajouts et 5 suppressions
  1. 1 4
      app/Controllers/extensionController.php
  2. 1 1
      lib/Minz/Extension.php

+ 1 - 4
app/Controllers/extensionController.php

@@ -49,10 +49,7 @@ class FreshRSS_extension_Controller extends Minz_ActionController {
 		}
 
 		$this->view->extension = $ext;
-
-		if (Minz_Request::isPost()) {
-			$this->view->extension->handleConfigureAction();
-		}
+		$this->view->extension->handleConfigureAction();
 	}
 
 	/**

+ 1 - 1
lib/Minz/Extension.php

@@ -104,7 +104,7 @@ class Minz_Extension {
 	}
 
 	/**
-	 * Handle the configure POST action.
+	 * Handle the configure action.
 	 *
 	 * It must be redefined by child classes.
 	 */