From 9a2eb88581569d39134dfdebd2dd0e34ef6d8794 Mon Sep 17 00:00:00 2001 From: ldeuffic <ldeuffic@git-test.afi-sa.fr> Date: Tue, 22 Jan 2013 09:07:22 +0000 Subject: [PATCH] Correction des arguments traitement Cosmo selectif (suite modifs JG) --- cosmogramme/php/_init.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cosmogramme/php/_init.php b/cosmogramme/php/_init.php index 24ccf01e4ab..45275f14786 100644 --- a/cosmogramme/php/_init.php +++ b/cosmogramme/php/_init.php @@ -11,7 +11,7 @@ date_default_timezone_set('Europe/Paris'); // Add cg: site= nom du site Opac (Ex: mabellebib.net) $argc = isset($argc) ? $argc : 0; -if ($argc != 3) { +if ($argc != 4) { if ($_SERVER['SERVER_ADDR'] != "127.0.0.1" and $_SERVER['SERVER_ADDR'] != "::1") { $site= "/" . substr($_SERVER['SCRIPT_NAME'], 1, strpos($_SERVER['SCRIPT_NAME'], "/" . APPLI . "/") -1) . "/" ; @@ -43,7 +43,7 @@ require("fonctions/variables.php"); $cfg=lireConfig($cfgfile); // Add cg -if($argc == 3) chdir("../../../php/cosmo/"); +if($argc == 4) chdir("../../../php/cosmo/"); // Mode web_service if(strpos($_SERVER["REQUEST_URI"],"/web_services/")) $mode_web_service=true; -- GitLab