mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-04 23:24:16 -04:00
Replaced BASEPATH with FCPATH
This commit is contained in:
@@ -385,7 +385,7 @@ class Config extends Secure_Controller
|
||||
else
|
||||
{
|
||||
$file = $this->request->getFile('company_logo');
|
||||
$file->move(BASEPATH . 'uploads');
|
||||
$file->move(FCPATH . 'uploads');
|
||||
|
||||
$file_info = [
|
||||
'orig_name' => $file->getClientName(),
|
||||
|
||||
@@ -15,6 +15,7 @@ use App\Models\Stock_location;
|
||||
use App\Models\Supplier;
|
||||
use App\Models\Tax_category;
|
||||
|
||||
use Config\ForeignCharacters;
|
||||
use Config\Services;
|
||||
use CodeIgniter\Files\File;
|
||||
use CodeIgniter\Images\Image;
|
||||
@@ -810,7 +811,7 @@ class Items extends Secure_Controller
|
||||
else
|
||||
{
|
||||
$file = $this->request->getFile('company_logo');
|
||||
$file->move(BASEPATH . 'uploads');
|
||||
$file->move(FCPATH . 'uploads');
|
||||
|
||||
$file_info = [
|
||||
'orig_name' => $file->getClientName(),
|
||||
@@ -1369,7 +1370,7 @@ class Items extends Secure_Controller
|
||||
$ext = pathinfo($item->pic_filename, PATHINFO_EXTENSION);
|
||||
if(empty($ext))
|
||||
{
|
||||
$images = glob(BASEPATH . "uploads/item_pics/$item->pic_filename.*");
|
||||
$images = glob(FCPATH . "uploads/item_pics/$item->pic_filename.*");
|
||||
if(sizeof($images) > 0)
|
||||
{
|
||||
$new_pic_filename = pathinfo($images[0], PATHINFO_BASENAME);
|
||||
|
||||
@@ -916,7 +916,7 @@ class Sales extends Secure_Controller
|
||||
new Token_customer((object)$sale_data)
|
||||
];
|
||||
$text = $this->token_lib->render($text, $tokens);
|
||||
$sale_data['mimetype'] = mime_content_type(BASEPATH . 'uploads/' . $this->config['company_logo']);
|
||||
$sale_data['mimetype'] = mime_content_type(FCPATH . 'uploads/' . $this->config['company_logo']);
|
||||
|
||||
// generate email attachment: invoice in pdf format
|
||||
$view = Services::renderer();
|
||||
|
||||
@@ -54,8 +54,8 @@
|
||||
File Permissions:<br>
|
||||
» [writeable/logs:]
|
||||
<?php $logs = WRITEPATH . 'logs/';
|
||||
$uploads = BASEPATH . 'uploads/';
|
||||
$images = BASEPATH . 'uploads/item_pics/';
|
||||
$uploads = FCPATH . 'uploads/';
|
||||
$images = FCPATH . 'uploads/item_pics/';
|
||||
$import = '../import_items.csv'; //TODO: These two are probably incorrect paths because CI4 has a different folder structure
|
||||
$importcustomers = '../import_customers.csv'; //TODO: This variable does not follow naming conventions for the project.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user