punbb-ext-standard.patch 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. Index: pun_poll/manifest.xml
  2. --- pun_poll/manifest.xml.orig 2010-05-11 16:51:25.000000000 +0200
  3. +++ pun_poll/manifest.xml 2010-05-11 17:10:04.000000000 +0200
  4. @@ -688,7 +688,7 @@
  5. 'SELECT' => 'id, answer',
  6. 'FROM' => 'answers',
  7. 'WHERE' => 'topic_id = '.$id,
  8. - 'GROUP BY' => 'id',
  9. + 'GROUP BY' => 'id, answer',
  10. 'ORDER BY' => 'id ASC'
  11. );
  12. $result_pun_poll = $forum_db->query_build($query_pun_poll) or error(__FILE__, __LINE__);
  13. @@ -745,7 +745,7 @@
  14. )
  15. ),
  16. 'WHERE' => 'a.topic_id='.$id,
  17. - 'GROUP BY' => 'a.id',
  18. + 'GROUP BY' => 'a.id, a.answer',
  19. 'ORDER BY' => 'a.id'
  20. );
  21. $result_pun_poll = $forum_db->query_build($query_pun_poll) or error(__FILE__, __LINE__);
  22. Index: pun_tags/functions.php
  23. --- pun_tags/functions.php.orig 2010-05-11 16:51:22.000000000 +0200
  24. +++ pun_tags/functions.php 2010-05-11 17:10:04.000000000 +0200
  25. @@ -128,10 +128,10 @@
  26. 'JOINS' => array(
  27. array(
  28. 'LEFT JOIN' => 'topic_tags AS tt',
  29. - 'ON' => 't.id = tt.tag_id GROUP BY t.id'
  30. + 'ON' => 't.id = tt.tag_id GROUP BY t.id, t.tag'
  31. )
  32. ),
  33. - 'HAVING' => 'cnt = 0'
  34. + 'HAVING' => 'COUNT(tt.tag_id) = 0'
  35. );
  36. $result = $forum_db->query_build($query) or error(__FILE__, __LINE__);
  37. Index: pun_tags/manifest.xml
  38. --- pun_tags/manifest.xml.orig 2010-05-11 16:51:22.000000000 +0200
  39. +++ pun_tags/manifest.xml 2010-05-11 17:10:04.000000000 +0200
  40. @@ -66,7 +66,7 @@
  41. $query_pun_tags = array(
  42. 'SELECT' => '1',
  43. 'FROM' => 'config',
  44. - 'WHERE' => 'conf_name = "o_pun_tags_show"'
  45. + 'WHERE' => 'conf_name = \'o_pun_tags_show\''
  46. );
  47. $result_pun_tags = $forum_db->query_build($query_pun_tags) or error(__FILE__, __LINE__);
  48. if ($forum_db->num_rows($result_pun_tags) == 0)
  49. @@ -81,7 +81,7 @@
  50. $query_pun_tags = array(
  51. 'SELECT' => '1',
  52. 'FROM' => 'config',
  53. - 'WHERE' => 'conf_name = "o_pun_tags_count_in_cloud"'
  54. + 'WHERE' => 'conf_name = \'o_pun_tags_count_in_cloud\''
  55. );
  56. $result_pun_tags = $forum_db->query_build($query_pun_tags) or error(__FILE__, __LINE__);
  57. if ($forum_db->num_rows($result_pun_tags) == 0)