Index: trunk/extensions/SemanticMediaWiki/includes/SMW_QueryProcessor.php |
— | — | @@ -435,19 +435,19 @@ |
436 | 436 | case '*': //print statement |
437 | 437 | $chunk = $this->readChunk('\]\]|\|'); |
438 | 438 | if ($chunk == '|') { |
439 | | - $label = $this->readChunk('\]\]'); |
440 | | - if ($label != ']]') { |
| 439 | + $printlabel = $this->readChunk('\]\]'); |
| 440 | + if ($printlabel != ']]') { |
441 | 441 | $chunk = $this->readChunk('\]\]'); |
442 | 442 | } else { |
443 | | - $label = ''; |
| 443 | + $printlabel = ''; |
444 | 444 | $chunk = ']]'; |
445 | 445 | } |
446 | 446 | } else { |
447 | 447 | global $wgContLang; |
448 | | - $label = $wgContLang->getNSText(NS_CATEGORY); |
| 448 | + $printlabel = $wgContLang->getNSText(NS_CATEGORY); |
449 | 449 | } |
450 | 450 | if ($chunk == ']]') { |
451 | | - return new SMWPrintRequest(SMW_PRINT_CATS, $label); |
| 451 | + return new SMWPrintRequest(SMW_PRINT_CATS, $printlabel); |
452 | 452 | } else { |
453 | 453 | $this->m_errors[] = 'Misshaped print statement.'; //TODO: internationalise |
454 | 454 | return NULL; |
— | — | @@ -490,18 +490,18 @@ |
491 | 491 | case '*': // print statement, abort processing |
492 | 492 | $chunk = $this->readChunk('\]\]|\|'); |
493 | 493 | if ($chunk == '|') { |
494 | | - $label = $this->readChunk('\]\]'); |
495 | | - if ($label != ']]') { |
| 494 | + $printlabel = $this->readChunk('\]\]'); |
| 495 | + if ($printlabel != ']]') { |
496 | 496 | $chunk = $this->readChunk('\]\]'); |
497 | 497 | } else { |
498 | | - $label = ''; |
| 498 | + $printlabel = ''; |
499 | 499 | $chunk = ']]'; |
500 | 500 | } |
501 | 501 | } else { |
502 | | - $label = $rel->getText(); |
| 502 | + $printlabel = $rel->getText(); |
503 | 503 | } |
504 | 504 | if ($chunk == ']]') { |
505 | | - return new SMWPrintRequest(SMW_PRINT_RELS, $label, $rel); |
| 505 | + return new SMWPrintRequest(SMW_PRINT_RELS, $printlabel, $rel); |
506 | 506 | } else { |
507 | 507 | $this->m_errors[] = 'Misshaped print statement.'; //TODO: internationalise |
508 | 508 | return NULL; |
— | — | @@ -595,18 +595,18 @@ |
596 | 596 | switch ($value) { |
597 | 597 | case '*': // print statement |
598 | 598 | if ($chunk == '|') { |
599 | | - $label = $this->readChunk('\]\]'); |
600 | | - if ($label != ']]') { |
| 599 | + $printlabel = $this->readChunk('\]\]'); |
| 600 | + if ($printlabel != ']]') { |
601 | 601 | $chunk = $this->readChunk('\]\]'); |
602 | 602 | } else { |
603 | | - $label = ''; |
| 603 | + $printlabel = ''; |
604 | 604 | $chunk = ']]'; |
605 | 605 | } |
606 | 606 | } else { |
607 | | - $label = $att->getText(); |
| 607 | + $printlabel = $att->getText(); |
608 | 608 | } |
609 | 609 | if ($chunk == ']]') { |
610 | | - return new SMWPrintRequest(SMW_PRINT_ATTS, $label, $att, $printmodifier); |
| 610 | + return new SMWPrintRequest(SMW_PRINT_ATTS, $printlabel, $att, $printmodifier); |
611 | 611 | } else { |
612 | 612 | $this->m_errors[] = 'Misshaped print statement.'; //TODO: internationalise |
613 | 613 | return NULL; |