Skip to content

Commit

Permalink
bug:2793 use "include_once" instead of "include" when including pclzip
Browse files Browse the repository at this point in the history
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 d7a9cba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin/include/languages.class.php
Expand Up @@ -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())
{
Expand Down
2 changes: 1 addition & 1 deletion admin/include/photos_add_direct_process.inc.php
Expand Up @@ -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())
{
Expand Down
2 changes: 1 addition & 1 deletion admin/include/plugins.class.php
Expand Up @@ -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())
{
Expand Down
2 changes: 1 addition & 1 deletion admin/include/themes.class.php
Expand Up @@ -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())
{
Expand Down

0 comments on commit d7a9cba

Please sign in to comment.