From 78943402b27bc5afb0736089b25a020cd33024b6 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Thu, 26 Mar 2009 04:36:00 +0000 Subject: Convert the L10n scanner from a library to a helper. In order to make the class static, I had to remove the index cache. I'll restore that and cache the index keys in the task context in a subsequent change. For now, I've put in a @todo to add the caching back in. --- core/controllers/admin_languages.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/controllers/admin_languages.php') diff --git a/core/controllers/admin_languages.php b/core/controllers/admin_languages.php index 1439f9c8..72a01bc3 100644 --- a/core/controllers/admin_languages.php +++ b/core/controllers/admin_languages.php @@ -42,10 +42,10 @@ class Admin_Languages_Controller extends Admin_Controller { } public function fetch_updates() { - // TODO: Convert this to AJAX / progress bar. + // @todo Convert this to AJAX / progress bar. $form = $this->_translation_updates_form(); if ($form->validate()) { - L10n_Scanner::instance()->update_index(); + l10n_scanner::update_index(); l10n_client::fetch_updates(); message::success(t("Translations installed/updated")); } @@ -95,7 +95,7 @@ class Admin_Languages_Controller extends Admin_Controller { $this->index($form); } } - + private function _languages_form() { $all_locales = locale::available(); $installed_locales = locale::installed(); -- cgit v1.2.3