Fix: reencoding preview tabs, Imagick is a class today
This commit is contained in:
parent
16b858d0fe
commit
20ea744d8a
@ -219,7 +219,7 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit') // Edit
|
||||
print '</tr>';
|
||||
|
||||
// Activate preview tab on element card
|
||||
if (function_exists("imagick_readimage"))
|
||||
if (class_exists("Imagick"))
|
||||
{
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("UsePreviewTabs").'</td><td>';
|
||||
@ -420,7 +420,7 @@ else // Show
|
||||
print "</tr>";
|
||||
|
||||
// Activate preview tab on element card
|
||||
if (function_exists("imagick_readimage"))
|
||||
if (class_exists("Imagick"))
|
||||
{
|
||||
$var=!$var;
|
||||
print '<tr '.$bc[$var].'><td width="35%">'.$langs->trans("UsePreviewTabs").'</td><td>';
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
/* Copyright (C) 2002-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
|
||||
* Copyright (C) 2004-2007 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2009 Regis Houssin <regis@dolibarr.fr>
|
||||
* Copyright (C) 2005-2011 Regis Houssin <regis@dolibarr.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@ -20,10 +20,10 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
\file htdocs/comm/propal/apercu.php
|
||||
\ingroup propal
|
||||
\brief Page de l'onglet apercu d'une propal
|
||||
\version $Id$
|
||||
* \file htdocs/comm/propal/apercu.php
|
||||
* \ingroup propal
|
||||
* \brief Page de l'onglet apercu d'une propal
|
||||
* \version $Id$
|
||||
*/
|
||||
|
||||
require("../../main.inc.php");
|
||||
@ -176,7 +176,7 @@ if ($_GET["id"] > 0)
|
||||
// Conversion du PDF en image png si fichier png non existant
|
||||
if (! file_exists($fileimage) && ! file_exists($fileimagebis))
|
||||
{
|
||||
if (function_exists("imagick_readimage"))
|
||||
if (class_exists("Imagick"))
|
||||
{
|
||||
$handle = imagick_readimage( $file ) ;
|
||||
if ( imagick_iserror( $handle ) )
|
||||
|
||||
@ -171,7 +171,7 @@ if ($_GET["id"] > 0) {
|
||||
// Conversion du PDF en image png si fichier png non existant
|
||||
if (! file_exists($fileimage) && ! file_exists($fileimagebis))
|
||||
{
|
||||
if (function_exists("imagick_readimage"))
|
||||
if (class_exists("Imagick"))
|
||||
{
|
||||
$handle = imagick_readimage( $file ) ;
|
||||
if ( imagick_iserror( $handle ) )
|
||||
|
||||
@ -181,8 +181,8 @@ if ($_GET["facid"] > 0)
|
||||
// Conversion du PDF en image png si fichier png non existant
|
||||
if (! file_exists($fileimage) && ! file_exists($fileimagebis))
|
||||
{
|
||||
if (function_exists("imagick_readimage"))
|
||||
{
|
||||
if (class_exists("Imagick"))
|
||||
{
|
||||
$handle = imagick_readimage( $file ) ;
|
||||
if ( imagick_iserror( $handle ) )
|
||||
{
|
||||
|
||||
@ -71,7 +71,7 @@ if ($_GET["id"])
|
||||
if (!file_exists($fileimage))
|
||||
{
|
||||
print $fileimage;
|
||||
if (function_exists(imagick_readimage))
|
||||
if (class_exists("Imagick"))
|
||||
{
|
||||
|
||||
$handle = imagick_readimage( $fileps ) ;
|
||||
|
||||
@ -139,7 +139,7 @@ if ($_GET["id"] > 0) {
|
||||
// Conversion du PDF en image png si fichier png non existant
|
||||
if (! file_exists($fileimage) && ! file_exists($fileimagebis))
|
||||
{
|
||||
if (function_exists("imagick_readimage"))
|
||||
if (class_exists("Imagick"))
|
||||
{
|
||||
$handle = imagick_readimage( $file ) ;
|
||||
if ( imagick_iserror( $handle ) )
|
||||
|
||||
@ -4,7 +4,7 @@ ErrorPasswordDiffers=Passwords differs, please type them again.
|
||||
ErrorForbidden=Access denied.<br>You try to access to a page, area or feature without being in an authenticated session or that is not allowed to your user.
|
||||
ErrorForbidden2=Permission for this login can be defined by your Dolibarr administrator from menu %s->%s.
|
||||
ErrorForbidden3=It seems that Dolibarr is not used through an authenticated session. Take a look at Dolibarr setup documentation to know how to manage authentications (htaccess, mod_auth or other...).
|
||||
ErrorNoImagickReadimage=Function imagick_readimage is not found in this PHP. No preview can be available. Administrators can disable this tab from menu Setup - Display.
|
||||
ErrorNoImagickReadimage=Class Imagick is not found in this PHP. No preview can be available. Administrators can disable this tab from menu Setup - Display.
|
||||
ErrorRecordAlreadyExists=Record already exists
|
||||
ErrorCantReadFile=Failed to read file '%s'
|
||||
ErrorCantReadDir=Failed to read directory '%s'
|
||||
|
||||
@ -4,7 +4,7 @@ ErrorPasswordDiffers=Les mots de passe ne sont pas identiques, veuillez les sais
|
||||
ErrorForbidden=Accès non autorisé.<br>Vous essayez d'accéder à une page, zone ou fonction sans être au sein d'une session authentifiée ou qui n'est pas autorisée pour votre compte utilisateur.
|
||||
ErrorForbidden2=Les permissions pour ce login peuvent être attribuées par l'administrateur Dolibarr via le menu %s -> %s.
|
||||
ErrorForbidden3=Dolibarr ne semble pas fonctionner au sein d'une session authentifiée. Consultez la documentation d'installation de Dolibarr pour savoir comment gérer les authentifications (htaccess, mod_auth ou autre...).
|
||||
ErrorNoImagickReadimage=La fonction imagick_readimage n'est pas présente sur cette installation de PHP. L'aperçu n'est donc pas disponible. Les administrateurs peuvent désactiver cet onglet dans le menu Configuration - Affichage.
|
||||
ErrorNoImagickReadimage=La classe Imagick n'est pas présente sur cette installation de PHP. L'aperçu n'est donc pas disponible. Les administrateurs peuvent désactiver cet onglet dans le menu Configuration - Affichage.
|
||||
ErrorRecordAlreadyExists=Enregistrement déjà existant
|
||||
ErrorCantReadFile=Échec de lecture du fichier '%s'
|
||||
ErrorCantReadDir=Échec de lecture du répertoire '%s'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user