Selaa lähdekoodia

Call handleConfigureAction() even for GET requests

See https://github.com/FreshRSS/FreshRSS/issues/252
Marien Fressinaud 11 vuotta sitten
vanhempi
commit
5bd7997d41
2 muutettua tiedostoa jossa 2 lisäystä ja 5 poistoa
  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.
 	 */