[Pkg-owncloud-commits] [php-sabredav] 71/148: Fixed namespace lookup in browser plugin.
David Prévot
taffit at moszumanska.debian.org
Wed Apr 15 01:37:17 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit 31694371eb068b419e6048651d5337ea2e881eaf
Author: Evert Pot <me at evertpot.com>
Date: Thu Mar 19 00:23:02 2015 -0400
Fixed namespace lookup in browser plugin.
---
lib/DAV/Browser/Plugin.php | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/DAV/Browser/Plugin.php b/lib/DAV/Browser/Plugin.php
index aa27181..2b3eb12 100644
--- a/lib/DAV/Browser/Plugin.php
+++ b/lib/DAV/Browser/Plugin.php
@@ -659,8 +659,8 @@ HTML;
list($ns, $localName) = \Sabre\Xml\Service::parseClarkNotation($name);
$realName = $name;
- if (isset($this->server->xmlNamespaces[$ns])) {
- $name = $this->server->xmlNamespaces[$ns] . ':' . $localName;
+ if (isset($this->server->xml->namespaceMap[$ns])) {
+ $name = $this->server->xml->namespaceMap[$ns] . ':' . $localName;
}
ob_start();
@@ -668,8 +668,8 @@ HTML;
$xmlValueDisplay = function($propName) {
$realPropName = $propName;
list($ns, $localName) = \Sabre\Xml\Service::parseClarkNotation($propName);
- if (isset($this->server->xmlNamespaces[$ns])) {
- $propName = $this->server->xmlNamespaces[$ns] . ':' . $localName;
+ if (isset($this->server->xml->namespaceMap[$ns])) {
+ $propName = $this->server->xml->namespaceMap[$ns] . ':' . $localName;
}
return "<span title=\"" . $this->escapeHTML($realPropName) . "\">" . $this->escapeHTML($propName) . "</span>";
};
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list