Ignore:
Timestamp:
Dec 26, 2013, 1:22:47 PM (10 years ago)
Author:
mistic100
Message:

update for 2.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/pbase2piwigo/admin/import.php

    r17434 r26201  
    11<?php
    2 if (!defined('PBASE_PATH')) die('Hacking attempt!');
     2defined('PBASE_PATH') or die('Hacking attempt!');
    33
    44include_once(PBASE_PATH.'include/functions.inc.php');
     
    66$step = null;
    77
    8 if (test_remote_download() === false)
     8if (!test_remote_download())
    99{
    10   array_push($page['errors'], l10n('No download method available. PBase2piwigo needs cURL extension or allow_url_fopen=true'));
     10  $page['errors'][] = l10n('No download method available. PBase2piwigo needs cURL extension or allow_url_fopen=true');
    1111}
    1212else
     
    5252    if (isset($_SESSION['pbase_empty_error']))
    5353    {
    54       array_push($page['errors'], l10n('Import queue is empty'));
     54      $page['errors'][] = l10n('Import queue is empty');
    5555      unset($_SESSION['pbase_empty_error']);
    5656    }
     
    132132$template->assign('STEP', $_GET['action']);
    133133
    134 $template->set_filename('pbase2piwigo', dirname(__FILE__) . '/template/import.tpl');
    135 
    136 ?>
     134$template->set_filename('pbase2piwigo', realpath(PBASE_PATH . 'admin/template/import.tpl'));
Note: See TracChangeset for help on using the changeset viewer.