From: umherirrender Date: Fri, 18 Jan 2013 18:25:38 +0000 (+0100) Subject: Remove hardcoded quotes on integer X-Git-Tag: 1.31.0-rc.0~20971^2 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=9824792a7516b3c2138beaa8fab22a71744c720d;p=lhc%2Fweb%2Fwiklou.git Remove hardcoded quotes on integer Change-Id: Ifb1e9777fe1338a5b97d061d80355d51d52ea8da --- diff --git a/includes/actions/HistoryAction.php b/includes/actions/HistoryAction.php index 43a03db2b7..051fa42dee 100644 --- a/includes/actions/HistoryAction.php +++ b/includes/actions/HistoryAction.php @@ -154,7 +154,7 @@ class HistoryAction extends FormlessAction { * Option to show only revisions that have been (partially) hidden via RevisionDelete */ if ( $request->getBool( 'deleted' ) ) { - $conds = array( "rev_deleted != '0'" ); + $conds = array( 'rev_deleted != 0' ); } else { $conds = array(); } diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 8bef55c81d..f7e316b799 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -727,10 +727,10 @@ class ContribsPager extends ReverseChronologicalPager { } } if ( $this->deletedOnly ) { - $condition[] = "rev_deleted != '0'"; + $condition[] = 'rev_deleted != 0'; } if ( $this->topOnly ) { - $condition[] = "rev_id = page_latest"; + $condition[] = 'rev_id = page_latest'; } return array( $tables, $index, $condition, $join_conds ); } diff --git a/includes/specials/SpecialProtectedpages.php b/includes/specials/SpecialProtectedpages.php index 6a1a9f02c1..db3f012915 100644 --- a/includes/specials/SpecialProtectedpages.php +++ b/includes/specials/SpecialProtectedpages.php @@ -346,7 +346,7 @@ class ProtectedPagesPager extends AlphabeticPager { $conds[] = "pr_expiry = {$this->mDb->addQuotes( $this->mDb->getInfinity() )} OR pr_expiry IS NULL"; } if( $this->cascadeonly ) { - $conds[] = "pr_cascade = '1'"; + $conds[] = 'pr_cascade = 1'; } if( $this->level )