Fix bug #3876 [import] PHP 5.2 - unexpected T_PAAMAYIM_NEKUDOTAYIM

This commit is contained in:
J.M 2013-04-15 16:25:43 -04:00 committed by Marc Delisle
parent cc8b95e896
commit dfdee264c3
3 changed files with 6 additions and 2 deletions

View File

@ -107,6 +107,7 @@ underscore
- bug #3874 [export] No preselected option when exporting table
- bug #3873 Can't copy table to target database if table exists there
- bug #3683 Incorrect listing of records from to count
- bug #3876 [import] PHP 5.2 - unexpected T_PAAMAYIM_NEKUDOTAYIM
3.5.9.0 (not yet released)

View File

@ -168,7 +168,7 @@ if ($_SESSION[$SESSION_KEY]["handler"] != "UploadNoplugin") {
echo ' class="ajax"';
?>>
<input type="hidden" name="<?php
echo $_SESSION[$SESSION_KEY]["handler"]::getIdKey();
echo call_user_func($_SESSION[$SESSION_KEY]['handler'] . '::getIdKey');
?>" value="<?php echo $upload_id ; ?>" />
<?php

View File

@ -122,7 +122,10 @@ function PMA_importAjaxStatus($id)
{
header('Content-type: application/json');
echo json_encode(
$_SESSION[$GLOBALS['SESSION_KEY']]['handler']::getUploadStatus($id)
call_user_func(
$_SESSION[$GLOBALS['SESSION_KEY']]['handler'] . '::getUploadStatus',
$id
)
);
}
?>