MaxSem has uploaded a new change for review.
https://gerrit.wikimedia.org/r/89233
Change subject: Remove obsolete comment and todo
......................................................................
Remove obsolete comment and todo
We don't have a WML API anymore
Change-Id: I86549d34713c5d4ac6dc9f50686e08ca486ffbf9
---
M includes/formatters/MobileFormatterWML.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend
refs/changes/33/89233/1
diff --git a/includes/formatters/MobileFormatterWML.php
b/includes/formatters/MobileFormatterWML.php
index 6c5e1fd..4d4efe7 100644
--- a/includes/formatters/MobileFormatterWML.php
+++ b/includes/formatters/MobileFormatterWML.php
@@ -59,7 +59,7 @@
$card .= "<card id='s{$idx}'
title='{$title}'><p>{$segmentText}</p>";
$idx = intval( $requestedSegment ) + 1;
$segmentsCount = $this->wmlContext->getOnlyThisSegment()
- ? $idx + 1 // @todo: when using from API we don't have
the total section count
+ ? $idx + 1
: count( $segments );
$card .= "<p>" . $idx . "/" . $segmentsCount . "</p>";
--
To view, visit https://gerrit.wikimedia.org/r/89233
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I86549d34713c5d4ac6dc9f50686e08ca486ffbf9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits