Remove alert about complete fields after POST method
This commit is contained in:
parent
8fc358a168
commit
7a2a8e85d6
|
@ -40,12 +40,9 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
|
||||||
));
|
));
|
||||||
|
|
||||||
// Call the method post of the plugin
|
// Call the method post of the plugin
|
||||||
if ($plugin->post()) {
|
$plugin->post();
|
||||||
Alert::set( $L->g('The changes have been saved') );
|
Alert::set( $L->g('The changes have been saved') );
|
||||||
Redirect::page('configure-plugin/'.$plugin->className());
|
Redirect::page('configure-plugin/'.$plugin->className());
|
||||||
} else {
|
|
||||||
Alert::set( $L->g('Complete all fields') );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
|
@ -31,7 +31,7 @@ class pluginBackup extends Plugin {
|
||||||
return $this->deleteBackup($_POST['deleteBackup']);
|
return $this->deleteBackup($_POST['deleteBackup']);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function adminSidebar()
|
public function adminSidebar()
|
||||||
|
|
|
@ -92,11 +92,8 @@ class pluginRSS extends Plugin {
|
||||||
|
|
||||||
public function post()
|
public function post()
|
||||||
{
|
{
|
||||||
// Call the method
|
|
||||||
parent::post();
|
parent::post();
|
||||||
|
return $this->createXML();
|
||||||
// After POST request
|
|
||||||
$this->createXML();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function afterPageCreate()
|
public function afterPageCreate()
|
||||||
|
|
|
@ -89,7 +89,7 @@ EOF;
|
||||||
public function post()
|
public function post()
|
||||||
{
|
{
|
||||||
parent::post();
|
parent::post();
|
||||||
$this->createCache();
|
return $this->createCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function afterPageCreate()
|
public function afterPageCreate()
|
||||||
|
|
|
@ -105,11 +105,8 @@ class pluginSitemap extends Plugin {
|
||||||
|
|
||||||
public function post()
|
public function post()
|
||||||
{
|
{
|
||||||
// Call the method
|
|
||||||
parent::post();
|
parent::post();
|
||||||
|
return $this->createXML();
|
||||||
// After POST request
|
|
||||||
$this->createXML();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function afterPageCreate()
|
public function afterPageCreate()
|
||||||
|
|
Loading…
Reference in New Issue