[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [11334] vfs: enable as cron
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [11334] vfs: enable as cron |
Date: |
Thu, 26 Sep 2013 18:13:26 +0000 |
Revision: 11334
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=11334
Author: sigurdne
Date: 2013-09-26 18:13:25 +0000 (Thu, 26 Sep 2013)
Log Message:
-----------
vfs: enable as cron
Modified Paths:
--------------
trunk/phpgwapi/inc/class.vfs_sql.inc.php
Modified: trunk/phpgwapi/inc/class.vfs_sql.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.vfs_sql.inc.php 2013-09-26 12:44:50 UTC (rev
11333)
+++ trunk/phpgwapi/inc/class.vfs_sql.inc.php 2013-09-26 18:13:25 UTC (rev
11334)
@@ -110,8 +110,15 @@
*/
function in_docroot($path)
{
- $docroots = array(PHPGW_SERVER_ROOT,
$_SERVER['DOCUMENT_ROOT']);
+ //$docroots = array(PHPGW_SERVER_ROOT,
$_SERVER['DOCUMENT_ROOT']);
+ $docroots = array(PHPGW_SERVER_ROOT);
+ //in case vfs is called from cli (cron-job)
+ if($_SERVER['DOCUMENT_ROOT'])
+ {
+ $docroots[] = $_SERVER['DOCUMENT_ROOT'];
+ }
+
foreach ($docroots as $docroot)
{
$len = strlen($docroot);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [11334] vfs: enable as cron,
Sigurd Nes <=