Changeset 26201 for extensions/pbase2piwigo/admin/import.php
- Timestamp:
- Dec 26, 2013, 1:22:47 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/pbase2piwigo/admin/import.php
r17434 r26201 1 1 <?php 2 if (!defined('PBASE_PATH'))die('Hacking attempt!');2 defined('PBASE_PATH') or die('Hacking attempt!'); 3 3 4 4 include_once(PBASE_PATH.'include/functions.inc.php'); … … 6 6 $step = null; 7 7 8 if ( test_remote_download() === false)8 if (!test_remote_download()) 9 9 { 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'); 11 11 } 12 12 else … … 52 52 if (isset($_SESSION['pbase_empty_error'])) 53 53 { 54 array_push($page['errors'], l10n('Import queue is empty'));54 $page['errors'][] = l10n('Import queue is empty'); 55 55 unset($_SESSION['pbase_empty_error']); 56 56 } … … 132 132 $template->assign('STEP', $_GET['action']); 133 133 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.