demove deprecated functions : replace ajax_page by AjaxPage

This commit is contained in:
acognet
2022-01-21 11:21:26 +01:00
parent 910638d93f
commit 17e8c53236
8 changed files with 12 additions and 17 deletions

View File

@@ -19,17 +19,16 @@
require_once('../../approot.inc.php');
require_once(APPROOT.'/application/application.inc.php');
require_once(APPROOT.'/application/ajaxwebpage.class.inc.php');
/**
* @param \ajax_page $oPage
* @param \AjaxPage $oPage
* @param int $iTransactionId
*
* @throws \ArchivedObjectException
* @throws \CoreException
* @throws \OQLException
*/
function RenderAttachments(ajax_page $oPage, $iTransactionId)
function RenderAttachments(AjaxPage $oPage, $iTransactionId)
{
$sClass = utils::ReadParam('objclass', '', false, 'class');
$sId = utils::ReadParam('objkey', '');
@@ -59,7 +58,7 @@ try
require_once APPROOT.'/application/loginwebpage.class.inc.php';
LoginWebPage::DoLoginEx(null /* any portal */, false);
$oPage = new ajax_page("");
$oPage = new AjaxPage("");
$sOperation = utils::ReadParam('operation', '');

View File

@@ -20,7 +20,6 @@
if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__));
if (!defined('APPROOT')) require_once(__DIR__.'/../../approot.inc.php');
require_once(APPROOT.'/application/application.inc.php');
require_once(APPROOT.'/application/ajaxwebpage.class.inc.php');
require_once(APPROOT.'core/mutex.class.inc.php');
@@ -49,7 +48,7 @@ function DisplayErrorAndDie($oPage, $sHtmlErrorMessage, $exitCode = null)
$sOperation = utils::ReadParam('operation', '');
$oPage = new ajax_page('');
$oPage = new AjaxPage('');
$oPage->SetContentType('text/html');

View File

@@ -24,7 +24,6 @@
*/
if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__));
require_once (APPROOT.'application/webpage.class.inc.php');
require_once (APPROOT.'application/ajaxwebpage.class.inc.php');
require_once (APPROOT.'application/utils.inc.php');
require_once (APPROOT.'core/log.class.inc.php');
IssueLog::Enable(APPROOT.'log/error.log');
@@ -110,7 +109,7 @@ function DoBackup($sTargetFile)
*/
function ReportStatus($sMessage, $bSuccess, $iErrorCode = 0, $aMoreFields = array())
{
$oPage = new ajax_page("");
$oPage = new AjaxPage("");
$oPage->SetContentType('application/json');
$aResult = array(
'code' => $iErrorCode,