mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-24 02:24:39 +00:00
update doc and fix a warning
This commit is contained in:
parent
50a29d96ab
commit
eba26021c7
@ -344,6 +344,7 @@ function getStatusMessage($status) {
|
|||||||
* Construct a URL from the supplied dav_name. The URL will be urlencoded,
|
* Construct a URL from the supplied dav_name. The URL will be urlencoded,
|
||||||
* except for any '/' characters in it.
|
* except for any '/' characters in it.
|
||||||
* @param string $partial_path The part of the path after the script name
|
* @param string $partial_path The part of the path after the script name
|
||||||
|
* @param boolean $force_script Whether to force-include caldav.php in the URL. Defaults to false.
|
||||||
*/
|
*/
|
||||||
function ConstructURL( $partial_path, $force_script = false ) {
|
function ConstructURL( $partial_path, $force_script = false ) {
|
||||||
global $c;
|
global $c;
|
||||||
@ -379,9 +380,9 @@ function ConstructURL( $partial_path, $force_script = false ) {
|
|||||||
/**
|
/**
|
||||||
* Deconstruct a dav_name from the supplied URL. The dav_name will be urldecoded.
|
* Deconstruct a dav_name from the supplied URL. The dav_name will be urldecoded.
|
||||||
*
|
*
|
||||||
* @param string $partial_path The part of the path after the script name
|
* @param string $url The full path including the script name
|
||||||
*/
|
*/
|
||||||
function DeconstructURL( $url, $force_script = false ) {
|
function DeconstructURL( $url ) {
|
||||||
global $c;
|
global $c;
|
||||||
|
|
||||||
$dav_name = rawurldecode($url);
|
$dav_name = rawurldecode($url);
|
||||||
|
|||||||
@ -285,7 +285,7 @@ class DAVResource
|
|||||||
$this->resource->url = null;
|
$this->resource->url = null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ( strtoupper($this->resource->class)=='CONFIDENTIAL' && !$this->HavePrivilegeTo('all') && $session->user_no != $this->resource->user_no ) {
|
if ( isset($this->resource->class) && strtoupper($this->resource->class)=='CONFIDENTIAL' && !$this->HavePrivilegeTo('all') && $session->user_no != $this->resource->user_no ) {
|
||||||
$vcal = new iCalComponent($this->resource->caldav_data);
|
$vcal = new iCalComponent($this->resource->caldav_data);
|
||||||
$confidential = $vcal->CloneConfidential();
|
$confidential = $vcal->CloneConfidential();
|
||||||
$this->resource->caldav_data = $confidential->Render();
|
$this->resource->caldav_data = $confidential->Render();
|
||||||
|
|||||||
@ -293,7 +293,6 @@ class Principal {
|
|||||||
/**
|
/**
|
||||||
* Work out the username, based on elements of the path.
|
* Work out the username, based on elements of the path.
|
||||||
* @param string $path The path to be used.
|
* @param string $path The path to be used.
|
||||||
* @param array $options The request options, controlling whether e-mail paths are allowed.
|
|
||||||
*/
|
*/
|
||||||
private function usernameFromPath( $path ) {
|
private function usernameFromPath( $path ) {
|
||||||
global $session, $c;
|
global $session, $c;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user