From 3d3d36fcdd6fbeeb43b38c551c7a2810b5290606 Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Thu, 4 Dec 2014 23:14:00 +0100 Subject: [PATCH] Fix DatabaseBase::replaceVars for PHP 5.3 Change-Id: I78a535abfe3f444b2ccb99638a63b6f16c9f18af --- includes/db/Database.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/includes/db/Database.php b/includes/db/Database.php index a805fa5e03..6c53f6a16e 100644 --- a/includes/db/Database.php +++ b/includes/db/Database.php @@ -2423,12 +2423,16 @@ abstract class DatabaseBase implements IDatabase { } /** - * Get the name of an index in a given table + * Get the name of an index in a given table. * + * @protected Don't use outside of DatabaseBase and childs * @param string $index * @return string */ - protected function indexName( $index ) { + public function indexName( $index ) { + // @FIXME: Make this protected once we move away from PHP 5.3 + // Needs to be public because of usage in closure (in DatabaseBase::replaceVars) + // Backwards-compatibility hack $renamed = array( 'ar_usertext_timestamp' => 'usertext_timestamp', -- 2.20.1