add namespace PmInstaller

This commit is contained in:
Marco A. Nina Mena
2017-08-15 08:06:44 -04:00
parent 6d5a1e6328
commit bc5afd9e9d
6 changed files with 86 additions and 158 deletions

View File

@@ -1,11 +1,7 @@
<?php
/**
* new Site create v1.1
* Jan 15th, 2011
*
* @author krlos P.C <carlos@colosa.com>
*/
use Processmaker\Core\Installer;
class newSiteProxy extends HttpProxyController
{
@@ -15,7 +11,7 @@ class newSiteProxy extends HttpProxyController
$ao_db_drop = (isset( $_POST['AO_DB_DROP'] )) ? true : false;
$name = trim( $_POST['NW_TITLE'] );
$inst = new PmInstaller();
$inst = new Installer();
if ($inst->isset_site($name)) {
if($ao_db_drop === true){
if(!file_exists(PATH_DATA . "sites/" . $name)){