diff --git a/bl-kernel/abstract/plugin.class.php b/bl-kernel/abstract/plugin.class.php index e439f0f2..29b4ca88 100644 --- a/bl-kernel/abstract/plugin.class.php +++ b/bl-kernel/abstract/plugin.class.php @@ -252,6 +252,11 @@ class Plugin { return file_exists($this->filenameDb); } + public function workspace() + { + return PATH_PLUGINS_DATABASES.$this->directoryName.DS; + } + public function init() { // This method is used on childre classes. diff --git a/bl-kernel/admin/controllers/new-page.php b/bl-kernel/admin/controllers/new-page.php index 31e85d29..528372cc 100644 --- a/bl-kernel/admin/controllers/new-page.php +++ b/bl-kernel/admin/controllers/new-page.php @@ -18,7 +18,7 @@ if( $_SERVER['REQUEST_METHOD'] == 'POST' ) { - if( createNewPage($_POST)!==false ) { + if( createPage($_POST)!==false ) { Alert::set( $Language->g('Page added successfully') ); } diff --git a/bl-kernel/admin/views/edit-page.php b/bl-kernel/admin/views/edit-page.php index 93c7f8c4..7f8445e9 100644 --- a/bl-kernel/admin/views/edit-page.php +++ b/bl-kernel/admin/views/edit-page.php @@ -151,26 +151,30 @@ echo '