diff options
author | Hugues Peccatte <hugues.peccatte@gmail.com> | 2014-09-28 20:19:30 +0400 |
---|---|---|
committer | Hugues Peccatte <hugues.peccatte@gmail.com> | 2014-09-28 20:19:30 +0400 |
commit | 38eb5948a0e19991620b7d9c47c1dc0f284e291a (patch) | |
tree | c25098538f1e2c737ec8b209fd130a4d1a841e5b /import_status.php | |
parent | af2d548d19ecc74cd5001a8460db9afb22b91d98 (diff) |
Remove use of PMA_String in comments.
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
Diffstat (limited to 'import_status.php')
-rw-r--r-- | import_status.php | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/import_status.php b/import_status.php index 6b6e04b369..a6c49f4b79 100644 --- a/import_status.php +++ b/import_status.php @@ -32,11 +32,9 @@ if (version_compare(PHP_VERSION, '5.4.0', '>=') define('UPLOAD_PREFIX', ini_get('session.upload_progress.prefix')); session_start(); - /** @var PMA_String $pmaString / - $pmaString = $GLOBALS['PMA_String']; foreach ($_SESSION as $key => $value) { // only copy session-prefixed data - if ($pmaString->substr($key, 0, $pmaString->strlen(UPLOAD_PREFIX)) + if (mb_substr($key, 0, mb_strlen(UPLOAD_PREFIX)) == UPLOAD_PREFIX) { $sessionupload[$key] = $value; } @@ -64,11 +62,9 @@ if (defined('SESSIONUPLOAD')) { $_SESSION[$key] = $value; } - /** @var PMA_String $pmaString / - $pmaString = $GLOBALS['PMA_String']; // remove session upload data that are not set anymore foreach ($_SESSION as $key => $value) { - if ($pmaString->substr($key, 0, $pmaString->strlen(UPLOAD_PREFIX)) + if (mb_substr($key, 0, mb_strlen(UPLOAD_PREFIX)) == UPLOAD_PREFIX && ! isset($sessionupload[$key]) ) { |