update doc and fix a warning

This commit is contained in:
Florian Schlichting committed 2018-01-08 22:43:27 +01:00
1 parent 50a29d96ab
commit eba26021c7
3 files changed
+4 -4

No files matched your search

+3 -2
View File
@@ -344,6 +344,7 @@ function getStatusMessage($status) {
* Construct a URL from the supplied dav_name. The URL will be urlencoded,
* except for any '/' characters in it.
* @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 ) {
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.
*
* @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;
$dav_name = rawurldecode($url);