r94876 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94875‎ | r94876 | r94877 >
Date:08:09, 18 August 2011
Author:mkroetzsch
Status:deferred
Tags:
Comment:
Allow duplicate printouts in query results: just do as the user says and don't try to be smart here
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_Description.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_Description.php
@@ -46,7 +46,7 @@
4747 * @param SMWPrintRequest $printrequest
4848 */
4949 public function addPrintRequest( SMWPrintRequest $printrequest ) {
50 - $this->m_printreqs[$printrequest->getHash()] = $printrequest;
 50+ $this->m_printreqs[] = $printrequest;
5151 }
5252
5353 /**
@@ -56,7 +56,7 @@
5757 * @param SMWPrintRequest
5858 */
5959 public function prependPrintRequest( SMWPrintRequest $printrequest ) {
60 - $this->m_printreqs = array_merge( array( $printrequest->getHash() => $printrequest ), $this->m_printreqs );
 60+ array_unshift( $this->m_printreqs, $printrequest );
6161 }
6262
6363 /**