<inputid="category"name="categories"type="text"placeholder="<?phpecho$l->t('Separate categories with commas');?>"value="<?phpechoisset($_['categories'])?htmlspecialchars($_['categories']):''?>">
<spanid="import_drop_target"class="droptarget float"><?phpecho$l->t("Drop a VCF file to import contacts.");?> (Max. <?phpecho$_['uploadMaxHumanFilesize'];?>)</span>
<inputid="categories"name="categories"type="text"placeholder="<?phpecho$l->t('Separate categories with commas');?>"value="<?phpechoisset($_['categories'])?htmlspecialchars($_['categories']):''?>">
$error = array('error'=>'There was an error while importing the user!','hint'=>'Please check the logs for a more detailed explaination');
$tmpl = new OC_Template('user_migrate', 'admin');
$tmpl = new OCP\Template('user_migrate', 'admin');
$tmpl->assign('error',$error);
return $tmpl->fetchPage();
} else {
@ -64,24 +64,24 @@ if (isset($_POST['user_import'])) {
if( isset( $notsupported ) || isset( $failed ) ){
if( count( $failed ) > 0 ){
$error = array('error'=>'Some app data failed to import','hint'=>'App data for: '.implode(', ', $failed).' failed to import.');
$tmpl = new OC_Template('user_migrate', 'admin');
$tmpl = new OCP\Template('user_migrate', 'admin');
$tmpl->assign('error',$error);
return $tmpl->fetchPage();
} else if( count( $notsupported ) > 0 ){
$error = array('error'=>'Some app data could not be imported, as the apps are not installed on this instance','hint'=>'App data for: '.implode(', ', $notsupported).' failed to import as they were not found. Please install the apps and try again');
$tmpl = new OC_Template('user_migrate', 'admin');
$tmpl = new OCP\Template('user_migrate', 'admin');
$tmpl->assign('error',$error);
return $tmpl->fetchPage();
}
} else {
// Went swimmingly!
$tmpl = new OC_Template('user_migrate', 'admin');
$tmpl = new OCP\Template('user_migrate', 'admin');
return $tmpl->fetchPage();
}
}
} else {
// fill template
$tmpl = new OC_Template('user_migrate', 'admin');
$tmpl = new OCP\Template('user_migrate', 'admin');