[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [10841] API: custom frontent in urls
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [10841] API: custom frontent in urls |
Date: |
Fri, 15 Feb 2013 09:26:53 +0000 |
Revision: 10841
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=10841
Author: sigurdne
Date: 2013-02-15 09:26:52 +0000 (Fri, 15 Feb 2013)
Log Message:
-----------
API: custom frontent in urls
Modified Paths:
--------------
trunk/phpgwapi/inc/class.sessions.inc.php
Modified: trunk/phpgwapi/inc/class.sessions.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.sessions.inc.php 2013-02-15 09:26:20 UTC (rev
10840)
+++ trunk/phpgwapi/inc/class.sessions.inc.php 2013-02-15 09:26:52 UTC (rev
10841)
@@ -541,6 +541,14 @@
*/
public function link($url, $extravars = array(),
$redirect=false, $external = false)
{
+
+ $custom_frontend =
isset($GLOBALS['phpgw_info']['flags']['custom_frontend']) &&
$GLOBALS['phpgw_info']['flags']['custom_frontend'] ?
$GLOBALS['phpgw_info']['flags']['custom_frontend'] : '';
+
+ if($custom_frontend && substr($url, 0, 4) != 'http')
+ {
+ $url = $custom_frontend . '/' . ltrim($url,
'/');
+ }
+
//W3C Compliant in markup
$term = '&';
if ( $redirect )
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [10841] API: custom frontent in urls,
Sigurd Nes <=