Index: trunk/WikiWord/WikiWord/src/main/php/wwutils.php |
— | — | @@ -425,7 +425,7 @@ |
426 | 426 | } |
427 | 427 | |
428 | 428 | function getImagesAbout($id, $max = 0) { |
429 | | - global $wwFakeCommonsConcepts; |
| 429 | + global $wwFakeCommonsConcepts, $wwFakeCommonsPlural; |
430 | 430 | |
431 | 431 | $concepts = $this->getLocalConcepts($id); |
432 | 432 | |
— | — | @@ -455,7 +455,12 @@ |
456 | 456 | return $images->listImages($max); |
457 | 457 | |
458 | 458 | $img = $this->getImagesInCategory("commmons", $title); //FIXME: resource mapping |
459 | | - $images->addImages($img, "commons:" . $title, "category", 0.5); |
| 459 | + $images->addImages($img, "commons:category:" . $title, "category", 0.5); |
| 460 | + |
| 461 | + if ($wwFakeCommonsConcepts && $wwFakeCommonsPlural) { |
| 462 | + $img = $this->getImagesInCategory("commmons", $title); //FIXME: resource mapping |
| 463 | + $images->addImages($img, "commons:category:" . $title, "category(pl)", 0.5); |
| 464 | + } |
460 | 465 | } |
461 | 466 | |
462 | 467 | return $images->listImages($max); |
Index: trunk/WikiWord/WikiWord/src/main/php/config.sample.php |
— | — | @@ -17,6 +17,7 @@ |
18 | 18 | $wwImagePageURL = "http://commons.wikimedia.org/wiki/File:{name}"; |
19 | 19 | |
20 | 20 | $wwFakeCommonsConcepts = true; |
| 21 | +$wwFakeCommonsPlural = true; |
21 | 22 | $wwCommonsTablePrefix = "commonswiki_p."; |
22 | 23 | |
23 | 24 | $wwWikiInfoTable = "toolserver.wiki"; |