Guest User

Untitled

a guest
Jun 14th, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.94 KB | None | 0 0
  1. Index: bug.php
  2. ===================================================================
  3. RCS file: /repository/php-bugs-web/bug.php,v
  4. retrieving revision 1.98
  5. diff -u -r1.98 bug.php
  6. --- bug.php 26 Nov 2008 09:56:38 -0000 1.98
  7. +++ bug.php 29 Mar 2009 19:32:32 -0000
  8. @@ -202,7 +202,7 @@
  9. $in['status'] = $RESOLVE_REASONS[$in['resolve']]['status'];
  10. }
  11. if ($in['status'] == 'Closed' && $bug['status'] == 'To be documented') {
  12. - $resolve_message = $FIX_VARIATIONS['fixedcvs']['Documentation problem'];
  13. + $resolve_message = $FIX_VARIATIONS['fixedcvs']['Documentation'];
  14. } elseif (isset($FIX_VARIATIONS[$in['resolve']][$bug['bug_type']])) {
  15. $resolve_message = $FIX_VARIATIONS[$in['resolve']][$bug['bug_type']];
  16. } else {
  17. Index: bugtypes.inc
  18. ===================================================================
  19. RCS file: /repository/php-bugs-web/bugtypes.inc,v
  20. retrieving revision 1.52
  21. diff -u -r1.52 bugtypes.inc
  22. --- bugtypes.inc 25 Aug 2008 18:43:05 -0000 1.52
  23. +++ bugtypes.inc 29 Mar 2009 19:32:32 -0000
  24. @@ -5,9 +5,6 @@
  25.  
  26. '*General Issues' => 'General Issues',
  27. 'Feature/Change Request' => '    Feature/Change Request',
  28. - 'Documentation problem' => '    Documentation problem',
  29. - 'Translation problem' => '    Documentation translation problem',
  30. - 'Doc Build problem' => '    Doc Build (PhD) problem',
  31. 'Website problem' => '    PHP.net Website problem',
  32. 'Systems problem' => '    PHP.net Systems Operation problem',
  33. 'Output Control' => '    Output Control',
  34. @@ -23,6 +20,13 @@
  35. 'PDO related' => '    PDO related',
  36. 'PHAR related' => '    PHAR related',
  37.  
  38. + '*Documentation Issues' => '    Documentation Related',
  39. + 'Documentation' => '        Incorrect Content (en)',
  40. + 'Translations' => '        Incorrect Content (translations)',
  41. + 'Doc Build System' => '        Build (PhD) system',
  42. + 'DocWeb' => '        DocWeb system',
  43. + 'Online Doc Editor' => '        Online Editor',
  44. +
  45. '*Compile Issues' => '    Compile Issues',
  46. 'Compile Failure' => '         Compile Failure',
  47. 'Compile Warning' => '         Compile Warning',
  48. Index: lstats.php
  49. ===================================================================
  50. RCS file: /repository/php-bugs-web/lstats.php,v
  51. retrieving revision 1.23
  52. diff -u -r1.23 lstats.php
  53. --- lstats.php 23 Oct 2008 12:02:34 -0000 1.23
  54. +++ lstats.php 29 Mar 2009 19:32:32 -0000
  55. @@ -18,14 +18,15 @@
  56. }
  57.  
  58. /* Categories which are excluded from bug count */
  59. - $excluded = "'Feature/Change Request', 'Systems problem', 'Website Problem', 'PEAR related', 'PECL related', 'Documentation problem', 'Translation problem', 'PHP-GTK related'";
  60. + $excluded = array('Feature/Change Request', 'Systems problem', 'Website Problem', 'PEAR related', 'PECL related', 'PHP-GTK related');
  61. + $excluded_in = "'" . implode("','", array_merge($excluded, get_documentation_types())) . "'";
  62.  
  63. if ($category != '') {
  64. $query.= " $status AND bug_type='" . mysql_real_escape_string($category). "' ";
  65. } else {
  66. $query.= " status='$status' ";
  67. }
  68. - $query.= "AND bug_type NOT IN($excluded)";
  69. + $query.= "AND bug_type NOT IN($excluded_in)";
  70.  
  71. $result=mysql_unbuffered_query($query);
  72. $row=mysql_fetch_row($result);
  73. Index: include/functions.inc
  74. ===================================================================
  75. RCS file: /repository/php-bugs-web/include/functions.inc,v
  76. retrieving revision 1.262
  77. diff -u -r1.262 functions.inc
  78. --- include/functions.inc 25 Feb 2009 18:37:49 -0000 1.262
  79. +++ include/functions.inc 29 Mar 2009 19:32:32 -0000
  80. @@ -525,7 +525,7 @@
  81.  
  82. function is_phpversion_irrelevant($bugtype)
  83. {
  84. - if (in_array($bugtype, array('Documentation problem','Translation problem','Doc Build problem','DocWeb problem','Website problem','Systems problem'))) {
  85. + if (is_documentation_related($bugtype) || in_array($bugtype, array('Website problem','Systems problem'))) {
  86. return true;
  87. }
  88. return false;
  89. @@ -534,20 +534,12 @@
  90. function get_bugtype_mail($bug_type)
  91. {
  92. global $mail_bugs_to;
  93. -
  94. - if (eregi("documentation", $bug_type)) {
  95. - return array("doc-bugs@lists.php.net", "doc-bugs@lists.php.net");
  96. - }
  97. - elseif (eregi("translation", $bug_type)) {
  98. - return array("doc-bugs@lists.php.net", "doc-bugs@lists.php.net");
  99. - }
  100. - elseif (eregi("doc build", $bug_type)) {
  101. +
  102. + if (is_documentation_related($bug_type)) {
  103. return array("doc-bugs@lists.php.net", "doc-bugs@lists.php.net");
  104. }
  105. - elseif (eregi("docweb", $bug_type)) {
  106. - return array("doc-web@lists.php.net", "doc-web@lists.php.net");
  107. - }
  108. - elseif (eregi("systems", $bug_type)) {
  109. +
  110. + if (eregi("systems", $bug_type)) {
  111. return array("systems@php.net","systems@php.net");
  112. }
  113. elseif (eregi("website", $bug_type)) {
  114. @@ -567,6 +559,26 @@
  115. }
  116. }
  117.  
  118. +function get_documentation_types()
  119. +{
  120. + return array(
  121. + '*Documentation Issues',
  122. + 'Documentation',
  123. + 'Translations',
  124. + 'Doc Build System',
  125. + 'DocWeb',
  126. + 'Online Doc Editor',
  127. + );
  128. +}
  129. +
  130. +function is_documentation_related($bug_type)
  131. +{
  132. + if (in_array($bug_type, get_documentation_types())) {
  133. + return true;
  134. + }
  135. + return false;
  136. +}
  137. +
  138. function get_row_color($row)
  139. {
  140. if ($row["bug_type"]=="Feature/Change Request") {
  141. Index: include/resolve.inc
  142. ===================================================================
  143. RCS file: /repository/php-bugs-web/include/resolve.inc,v
  144. retrieving revision 1.60
  145. diff -u -r1.60 resolve.inc
  146. --- include/resolve.inc 23 Oct 2008 12:02:34 -0000 1.60
  147. +++ include/resolve.inc 29 Mar 2009 19:32:33 -0000
  148. @@ -281,28 +281,42 @@
  149.  
  150. Thank you for the report, and for helping us make PHP.net better.',
  151.  
  152. - 'Documentation problem' =>
  153. + 'Documentation issues' =>
  154. 'This bug has been fixed in the documentation\'s XML sources. Since the
  155. online and downloadable versions of the documentation need some time
  156. to get updated, we would like to ask you to be a bit patient.
  157.  
  158. Thank you for the report, and for helping us make our documentation better.',
  159.  
  160. - 'Translation problem' =>
  161. + 'Documentation' =>
  162. 'This bug has been fixed in the documentation\'s XML sources. Since the
  163. online and downloadable versions of the documentation need some time
  164. to get updated, we would like to ask you to be a bit patient.
  165.  
  166. Thank you for the report, and for helping us make our documentation better.',
  167.  
  168. - 'Doc Build problem' =>
  169. + 'Translations' =>
  170. +'This bug has been fixed in the documentation\'s XML sources. Since the
  171. +online and downloadable versions of the documentation need some time
  172. +to get updated, we would like to ask you to be a bit patient.
  173. +
  174. +Thank you for the report, and for helping us make our documentation better.',
  175. +
  176. + 'Doc Build System' =>
  177. 'This bug has been fixed in CVS. Since the websites are not directly
  178. updated from the CVS server, the fix might need some time to spread
  179. across the globe to all mirror sites, including PHP.net itself.
  180.  
  181. Thank you for the report, and for helping us make PHP.net better.',
  182.  
  183. - 'DocWeb problem' =>
  184. + 'Online Doc Editor' =>
  185. +'This bug has been fixed in CVS. Since the websites are not directly
  186. +updated from the CVS server, the fix might need some time to spread
  187. +to the Online Doc Editor.
  188. +
  189. +Thank you for the report, and for helping us make PHP.net better.',
  190. +
  191. + 'DocWeb' =>
  192. 'This bug has been fixed in CVS. Since the PHP Documentation Tools website
  193. is updated from the CVS repository at a regular interval, the fix might need
  194. some time to take effect.
Add Comment
Please, Sign In to add comment