Aude has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/286262

Change subject: Backport change to purtle
......................................................................

Backport change to purtle

https://github.com/wmde/purtle/pull/1

To try to help us with T133924

Bug: T133924
Change-Id: Ibd302e194248d6012adf0489809fb7891c832f2d
---
M purtle/src/RdfWriterBase.php
1 file changed, 8 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/62/286262/1

diff --git a/purtle/src/RdfWriterBase.php b/purtle/src/RdfWriterBase.php
index 8e87ef2..6d0876d 100644
--- a/purtle/src/RdfWriterBase.php
+++ b/purtle/src/RdfWriterBase.php
@@ -351,7 +351,10 @@
        final public function about( $base, $local = null ) {
                $this->expandSubject( $base, $local );
 
-               if ( $base === $this->currentSubject[0] && $local === 
$this->currentSubject[1] ) {
+               if ( $this->state === self::STATE_OBJECT
+                       && $base === $this->currentSubject[0]
+                       && $local === $this->currentSubject[1]
+               ) {
                        return $this; // redundant about() call
                }
 
@@ -392,7 +395,10 @@
        final public function say( $base, $local = null ) {
                $this->expandPredicate( $base, $local );
 
-               if ( $base === $this->currentPredicate[0] && $local === 
$this->currentPredicate[1] ) {
+               if ( $this->state === self::STATE_OBJECT
+                       && $base === $this->currentPredicate[0]
+                       && $local === $this->currentPredicate[1]
+               ) {
                        return $this; // redundant about() call
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/286262
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibd302e194248d6012adf0489809fb7891c832f2d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: wmf/1.27.0-wmf.21
Gerrit-Owner: Aude <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to