Permalink
Browse files

bug:2793 use "include_once" instead of "include" when including pclzip

git-svn-id: http://piwigo.org/svn/trunk@19167 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information...
mistic100 committed Nov 25, 2012
1 parent fb672b5 commit d7a9cbae9ad4770ee463019f7e513a0893880247
@@ -319,7 +319,7 @@ function extract_language_files($action, $revision, $dest='')
if ($handle = @fopen($archive, 'wb') and fetchRemote($url, $handle, $get_data))
{
fclose($handle);
include(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php');
include_once(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php');
$zip = new PclZip($archive);
if ($list = $zip->listContent())
{
@@ -82,7 +82,7 @@
);
define('PCLZIP_TEMPORARY_DIR', $upload_dir.'/');
include(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php');
include_once(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php');
$zip = new PclZip($archive_path);
if ($list = $zip->listContent())
{
@@ -460,7 +460,7 @@ function extract_plugin_files($action, $revision, $dest)
if ($handle = @fopen($archive, 'wb') and fetchRemote($url, $handle, $get_data))
{
fclose($handle);
include(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php');
include_once(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php');
$zip = new PclZip($archive);
if ($list = $zip->listContent())
{
@@ -577,7 +577,7 @@ function extract_theme_files($action, $revision, $dest)
if ($handle = @fopen($archive, 'wb') and fetchRemote($url, $handle, $get_data))
{
fclose($handle);
include(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php');
include_once(PHPWG_ROOT_PATH.'admin/include/pclzip.lib.php');
$zip = new PclZip($archive);
if ($list = $zip->listContent())
{

0 comments on commit d7a9cba

Please sign in to comment.