Srcjunior has uploaded a new change for review. https://gerrit.wikimedia.org/r/201207
Change subject: Fix load collection method and add missing link to load a saved collection ...................................................................... Fix load collection method and add missing link to load a saved collection Change-Id: Ibdc7b1bb8172a661f93182da9350bbb5991d9c11 --- M Collection.body.php 1 file changed, 4 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Collection refs/changes/07/201207/1 diff --git a/Collection.body.php b/Collection.body.php index 37fecf9..85b53c1 100644 --- a/Collection.body.php +++ b/Collection.body.php @@ -891,7 +891,8 @@ $article = new Article( $title ); - foreach ( preg_split( '/[\r\n]+/', $article->getContent() ) as $line ) { + $article->getContent(); + foreach ( preg_split( '/[\r\n]+/', $article->mRevision->getSerializedData() ) as $line ) { $item = $this->parseCollectionLine( $collection, $line, $append ); if ( !is_null( $item ) ) { $items[] = $item; @@ -959,6 +960,8 @@ } } + $articleText .= "\n<span class=\"plainlinks\">[{{fullurl:Special:Book|bookcmd=load_collection&colltitle={{FULLPAGENAMEE}}}} " . $this->msg( 'coll-load_collection') . "]</span>"; + $req = new DerivativeRequest( $this->getRequest(), array( -- To view, visit https://gerrit.wikimedia.org/r/201207 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ibdc7b1bb8172a661f93182da9350bbb5991d9c11 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Collection Gerrit-Branch: master Gerrit-Owner: Srcjunior <sergiocharpi...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits