Author: benj
Date: Tue Jan 24 11:13:11 2017
New Revision: 1793
URL: http://svn.gna.org/viewcvs/gdtc?rev=1793&view=rev
Log:
Fix app detection
Modified:
trunk/gdtc/include/utils.php
Modified: trunk/gdtc/include/utils.php
URL:
http://svn.gna.org/viewcvs/gdtc/trunk/gdtc/include/utils.php?rev=1793&r1=1792&r2=1793&view=diff
==============================================================================
--- trunk/gdtc/include/utils.php (original)
+++ trunk/gdtc/include/utils.php Tue Jan 24 11:13:11 2017
@@ -100,7 +100,7 @@
// correctement pris en compte
if ( array_key_exists ( 'REQUEST_URI', $_SERVER ) )
{
- preg_match ( '/\/([^\/]*)/',
+ preg_match ( '/\/([a-z]*)/',
str_replace("/fr","",$_SERVER [ 'REQUEST_URI' ]), $matches );
$app = $matches [ 1 ];
}
_______________________________________________
Gdtc-commits mailing list
[email protected]
https://mail.gna.org/listinfo/gdtc-commits