mirror of
https://github.com/typemill/typemill.git
synced 2025-08-04 21:27:41 +02:00
Version 1.2.18: Discard Changes and more Inline Elements
This commit is contained in:
@@ -176,12 +176,15 @@ class ContentApiController extends ContentController
|
||||
# set item
|
||||
if(!$this->setItem()){ return $response->withJson($this->errors, 404); }
|
||||
|
||||
# set redirect url to edit page
|
||||
$url = $this->uri->getBaseUrl() . '/tm/content/' . $this->settings['editor'] . $this->item->urlRel;
|
||||
|
||||
# remove the unpublished changes
|
||||
$delete = $this->deleteContentFiles(['txt']);
|
||||
|
||||
# set redirect url to edit page
|
||||
$url = $this->uri->getBaseUrl() . '/tm/content/' . $this->settings['editor'] . $this->item->urlRelWoF;
|
||||
|
||||
# remove the unpublished changes
|
||||
$delete = $this->deleteContentFiles(['txt']);
|
||||
|
||||
if($delete)
|
||||
{
|
||||
# update the backend structure
|
||||
|
@@ -29,12 +29,13 @@ class SetupController extends Controller
|
||||
$systemcheck['error'][] = 'The PHP-version of your server is ' . phpversion() . ' and Typemill needs at least 7.0.0';
|
||||
}
|
||||
|
||||
# check if mod rewrite is enabled
|
||||
/* check if mod rewrite is enabled, does not work with PHP-fpm or NGINX
|
||||
$modules = apache_get_modules();
|
||||
if(!in_array('mod_rewrite', $modules))
|
||||
{
|
||||
$systemcheck['error'][] = 'The apache module "mod_rewrite" is not enabled.';
|
||||
}
|
||||
*/
|
||||
|
||||
# check if GD extension is enabled
|
||||
if(!extension_loaded('gd')){
|
||||
|
Reference in New Issue
Block a user