phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r381 - trunk/tva


From: phpcompta-dev
Subject: [Phpcompta-dev] r381 - trunk/tva
Date: Sun, 24 Jun 2012 21:43:30 +0200 (CEST)

Author: danydb
Date: 2012-06-24 21:43:30 +0200 (Sun, 24 Jun 2012)
New Revision: 381

Modified:
   trunk/tva/index.php
Log:
Warning because plugin has been updated, ask to check parameters

Modified: trunk/tva/index.php
===================================================================
--- trunk/tva/index.php 2012-06-21 17:47:14 UTC (rev 380)
+++ trunk/tva/index.php 2012-06-24 19:43:30 UTC (rev 381)
@@ -23,7 +23,7 @@
 /*!\file
  * \brief main file for tva
  */
-Extension::check_version(4400);
+Extension::check_version(4900);
 
 
$url='?'.dossier::get().'&plugin_code='.$_REQUEST['plugin_code']."&ac=".$_REQUEST['ac'];
 $array=array (
@@ -57,11 +57,11 @@
   break;
 
 }
-
+$install=0;
 $cn=new Database(dossier::id());
 if ( $cn->exist_schema('tva_belge') == false) {
   require_once('class_install_plugin.php');
-
+  $install=1;
   $iplugn=new Install_Plugin($cn);
   $iplugn->install();
   echo_warning(_("L'extension est installée, pourriez-vous en vérifier le 
paramètrage ?"));
@@ -92,6 +92,8 @@
 {
                $file=__DIR__."/sql/patch2.sql";
                $cn->execute_script($file);
+               if ( $install == 0 ) echo_warning(_("Mise à jour du plugin, 
pourriez-vous en vérifier le paramètrage ?"));
+               $def=5;
 }
 echo '<div style="float:right"><a class="mtitle" style="font-size:140%" 
href="http://wiki.phpcompta.eu/doku.php?id=tva"; target="_blank">Aide</a>'.
 '<span style="font-size:0.8em;color:red;display:inline">vers:SVNINFO</span>'.



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]