mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-03 11:59:16 +01:00
Formatting changes. Nothing to see here, move along.
This commit is contained in:
parent
04eb57e6da
commit
824de4ee1d
@ -43,7 +43,7 @@
|
||||
/* These are used in calls to extra_sql () */
|
||||
define ('VFS_SQL_SELECT', 1);
|
||||
define ('VFS_SQL_DELETE', 2);
|
||||
define ('VFS_SQL_UPDATE', 2);
|
||||
define ('VFS_SQL_UPDATE', 4);
|
||||
|
||||
/* These are used in calls to add_journal (), and allow journal messages to be more standard */
|
||||
define ('VFS_OPERATION_CREATED', 1);
|
||||
@ -145,10 +145,14 @@ class vfs
|
||||
function set_relative ($mask)
|
||||
{
|
||||
if (!$mask)
|
||||
{
|
||||
unset ($this->relative);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->relative = $mask;
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
@function get_relative
|
||||
@ -159,10 +163,14 @@ class vfs
|
||||
function get_relative ()
|
||||
{
|
||||
if (isset ($this->relative))
|
||||
{
|
||||
return $this->relative;
|
||||
}
|
||||
else
|
||||
{
|
||||
return RELATIVE_ALL;
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
@function sanitize
|
||||
@ -346,17 +354,25 @@ class vfs
|
||||
break;
|
||||
case VFS_OPERATION_COPIED:
|
||||
if (!$state_one)
|
||||
{
|
||||
$state_one = $p->fake_full_path;
|
||||
}
|
||||
if (!$state_two)
|
||||
{
|
||||
return False;
|
||||
}
|
||||
$value = "Copied $state_one to $state_two";
|
||||
$incversion = False;
|
||||
break;
|
||||
case VFS_OPERATION_MOVED:
|
||||
if (!$state_one)
|
||||
{
|
||||
$state_one = $p->fake_full_path;
|
||||
}
|
||||
if (!$state_two)
|
||||
{
|
||||
return False;
|
||||
}
|
||||
$value = "Moved $state_one to $state_two";
|
||||
$incversion = False;
|
||||
break;
|
||||
@ -407,10 +423,14 @@ class vfs
|
||||
for ($i = 0; $i < $newnumofparts; $i++)
|
||||
{
|
||||
if (!isset ($version_parts[$i]))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
if ($i)
|
||||
{
|
||||
$newversion .= ".";
|
||||
}
|
||||
|
||||
$newversion .= $version_parts[$i];
|
||||
}
|
||||
@ -1760,7 +1780,9 @@ class vfs
|
||||
while (list ($num, $attribute) = each ($attribute_names))
|
||||
{
|
||||
if ($num)
|
||||
{
|
||||
$sql .= ", ";
|
||||
}
|
||||
|
||||
$sql .= "$attribute='" . $$attribute . "'";
|
||||
}
|
||||
@ -2010,7 +2032,9 @@ class vfs
|
||||
while (list ($num, $attribute) = each ($this->attributes))
|
||||
{
|
||||
if ($num)
|
||||
{
|
||||
$sql .= ", ";
|
||||
}
|
||||
|
||||
$sql .= "$attribute";
|
||||
}
|
||||
@ -2068,7 +2092,9 @@ class vfs
|
||||
while (list ($num, $attribute) = each ($this->attributes))
|
||||
{
|
||||
if ($num)
|
||||
{
|
||||
$sql .= ", ";
|
||||
}
|
||||
|
||||
$sql .= "$attribute";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user