Brion VIBBER has uploaded a new change for review.

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

Change subject: Fix regression with section links
......................................................................

Fix regression with section links

Wasn't storing the anchor property on sections, whoops

Change-Id: I776d66fd5c4663a72f9aee833aa762370a1a9225
---
M MediaWikiKit/MediaWikiKit/MWKSection.m
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/apps/ios/wikipedia 
refs/changes/76/178576/1

diff --git a/MediaWikiKit/MediaWikiKit/MWKSection.m 
b/MediaWikiKit/MediaWikiKit/MWKSection.m
index 15854ec..1ddfecc 100644
--- a/MediaWikiKit/MediaWikiKit/MWKSection.m
+++ b/MediaWikiKit/MediaWikiKit/MWKSection.m
@@ -23,6 +23,7 @@
         _number     =  [self optionalString:@"number"     dict:dict]; // 
deceptively named, this must be a string
         _index      =  [self optionalString:@"index"      dict:dict]; // 
deceptively named, this must be a string
         _fromtitle  =  [self optionalTitle: @"fromtitle"  dict:dict];
+        _anchor     =  [self optionalString:@"anchor"     dict:dict];
         _sectionId  = [[self requiredNumber:@"id"         dict:dict] intValue];
         _references = ([self optionalString:@"references" dict:dict] != nil);
     }
@@ -50,6 +51,9 @@
     if (self.fromtitle) {
         dict[@"fromtitle"] = [self.fromtitle prefixedText];
     }
+    if (self.anchor) {
+        dict[@"anchor"] = self.anchor;
+    }
     dict[@"id"] = @(self.sectionId);
     if (self.references) {
         dict[@"references"] = @"";

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I776d66fd5c4663a72f9aee833aa762370a1a9225
Gerrit-PatchSet: 1
Gerrit-Project: apps/ios/wikipedia
Gerrit-Branch: master
Gerrit-Owner: Brion VIBBER <[email protected]>

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

Reply via email to