Archives: added the option with_archive to export web services (defaults to 0)

SVN:trunk[4711]
This commit is contained in:
Romain Quetiez
2017-04-27 15:03:24 +00:00
parent c66728e478
commit ea2681e08c
3 changed files with 46 additions and 9 deletions

View File

@@ -153,8 +153,11 @@ class utils
{
$iDefault = 0;
}
$iCurrent = self::ReadParam('with-archive', $iDefault, true);
// Read and record the value for switching the archive mode
$iCurrent = self::ReadParam('with-archive', $iDefault);
$_SESSION['archive_mode'] = $iCurrent;
// Read and use the value for the current page (web services)
$iCurrent = self::ReadParam('with_archive', $iCurrent, true);
self::$bPageMode = ($iCurrent == 1);
}