![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/app/code/Xtento/StockImport/Controller/Adminhtml/Index/ |
<?php /** * Product: Xtento_StockImport * ID: u66QkJ5rBwmimhUzUElhIKqqWRvsbhC3WLqSMk5AjmQ= * Last Modified: 2019-02-05T17:10:52+00:00 * File: app/code/Xtento/StockImport/Controller/Adminhtml/Index/Disabled.php * Copyright: Copyright (c) XTENTO GmbH & Co. KG <[email protected]> / All rights reserved. */ namespace Xtento\StockImport\Controller\Adminhtml\Index; class Disabled extends \Xtento\StockImport\Controller\Adminhtml\Index { /** * @return \Magento\Backend\Model\View\Result\Page */ public function execute() { $healthCheck = $this->healthCheck(); if ($healthCheck !== true) { $resultRedirect = $this->resultFactory->create( \Magento\Framework\Controller\ResultFactory::TYPE_REDIRECT ); return $resultRedirect->setPath($healthCheck); } $this->messageManager->addWarningMessage( __( 'The extension is currently disabled. Please go to System > XTENTO Extensions > Stock Import Configuration to enable it. After that access the module at Products > Stock Import again.' ) ); /** @var \Magento\Backend\Model\View\Result\Page $resultPage */ $resultPage = $this->resultFactory->create(\Magento\Framework\Controller\ResultFactory::TYPE_PAGE); $this->updateMenu($resultPage); return $resultPage; } }