Index: branches/REL1_13/extensions/FlaggedRevs/specialpages/ProblemPages_body.php |
— | — | @@ -6,6 +6,9 @@ |
7 | 7 | wfLoadExtensionMessages( 'ProblemPages' ); |
8 | 8 | wfLoadExtensionMessages( 'FlaggedRevs' ); |
9 | 9 | |
| 10 | +if( !defined('READER_FEEDBACK_SIZE') ) |
| 11 | + define('READER_FEEDBACK_SIZE',15); |
| 12 | + |
10 | 13 | class ProblemPages extends SpecialPage |
11 | 14 | { |
12 | 15 | function __construct() { |
— | — | @@ -54,7 +57,7 @@ |
55 | 58 | } |
56 | 59 | |
57 | 60 | protected function showPageList() { |
58 | | - global $wgOut, $wgUser, $wgLang; |
| 61 | + global $wgOut; |
59 | 62 | $pager = new ProblemPagesPager( $this, array(), $this->namespace, $this->tag ); |
60 | 63 | if( $pager->getNumRows() ) { |
61 | 64 | $wgOut->addHTML( wfMsgExt('problempages-list', array('parse') ) ); |
— | — | @@ -125,7 +128,7 @@ |
126 | 129 | } |
127 | 130 | $conds[] = "rfp_ave_val < $x"; |
128 | 131 | // Reasonable sample |
129 | | - $conds[] = 'rfp_count >= 15'; |
| 132 | + $conds[] = 'rfp_count >= '.READER_FEEDBACK_SIZE; |
130 | 133 | return array( |
131 | 134 | 'tables' => array('reader_feedback_pages','page'), |
132 | 135 | 'fields' => 'page_namespace,page_title,page_len,rfp_ave_val', |
Index: branches/REL1_13/extensions/FlaggedRevs/specialpages/ValidationStatistics_body.php |
— | — | @@ -23,7 +23,7 @@ |
24 | 24 | $ec = $this->getEditorCount(); |
25 | 25 | $rc = $this->getReviewerCount(); |
26 | 26 | |
27 | | - $wgOut->addWikiText( wfMsg('validationstatistics-users',$ec,$rc) ); |
| 27 | + $wgOut->addWikiText( wfMsgExt('validationstatistics-users',array('parsemag'),$ec,$rc) ); |
28 | 28 | |
29 | 29 | if( !$this->readyForQuery() ) { |
30 | 30 | return false; |
— | — | @@ -65,8 +65,9 @@ |
66 | 66 | // If a cache update is needed, do so asynchronously. |
67 | 67 | // Don't trigger query while another is running. |
68 | 68 | if( !$dbCache->get( $key ) && !$dbCache->get( $keySQL ) ) { |
| 69 | + $ext = strpos( $_SERVER['SCRIPT_NAME'], 'index.php5' ) === false ? 'php' : 'php5'; |
69 | 70 | $path = wfEscapeShellArg( dirname(__FILE__).'/../maintenance/updateStats.php' ); |
70 | | - exec( "php $path > /dev/null &" ); |
| 71 | + exec( "$ext $path > /dev/null &" ); |
71 | 72 | } |
72 | 73 | } |
73 | 74 | |