Merge "Move up devunt's name to Developers"
[lhc/web/wiklou.git] / includes / revisiondelete / RevDelLogList.php
index d8bd2f7..ff1d2ed 100644 (file)
@@ -40,11 +40,11 @@ class RevDelLogList extends RevDelList {
        }
 
        public static function suggestTarget( $target, array $ids ) {
-               $result = wfGetDB( DB_SLAVE )->select( 'logging',
+               $result = wfGetDB( DB_REPLICA )->select( 'logging',
                        'log_type',
-                       array( 'log_id' => $ids ),
+                       [ 'log_id' => $ids ],
                        __METHOD__,
-                       array( 'DISTINCT' )
+                       [ 'DISTINCT' ]
                );
                if ( $result->numRows() == 1 ) {
                        // If there's only one type, the target can be set to include it.
@@ -61,7 +61,7 @@ class RevDelLogList extends RevDelList {
        public function doQuery( $db ) {
                $ids = array_map( 'intval', $this->ids );
 
-               return $db->select( 'logging', array(
+               return $db->select( 'logging', [
                                'log_id',
                                'log_type',
                                'log_action',
@@ -74,10 +74,10 @@ class RevDelLogList extends RevDelList {
                                'log_comment',
                                'log_params',
                                'log_deleted'
-                       ),
-                       array( 'log_id' => $ids ),
+                       ],
+                       [ 'log_id' => $ids ],
                        __METHOD__,
-                       array( 'ORDER BY' => 'log_id DESC' )
+                       [ 'ORDER BY' => 'log_id DESC' ]
                );
        }
 
@@ -94,10 +94,10 @@ class RevDelLogList extends RevDelList {
        }
 
        public function getLogParams( $params ) {
-               return array(
+               return [
                        '4::ids' => $params['ids'],
                        '5::ofield' => $params['oldBits'],
                        '6::nfield' => $params['newBits'],
-               );
+               ];
        }
 }