[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_3_1-14975-g6d62ee6

Michal Čihař nijel at users.sourceforge.net
Mon Aug 15 09:32:19 CEST 2011


The branch, master has been updated
       via  6d62ee60aa324bd8aea539d0f99cb80b99446f52 (commit)
      from  18698ad6ada502eca7d48bbd4c59e98c7c7e4a1b (commit)


- Log -----------------------------------------------------------------
commit 6d62ee60aa324bd8aea539d0f99cb80b99446f52
Author: Michal Čihař <michal at cihar.com>
Date:   Mon Aug 15 09:32:06 2011 +0200

    This needs an instance

-----------------------------------------------------------------------

Summary of changes:
 libraries/advisor.class.php |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libraries/advisor.class.php b/libraries/advisor.class.php
index 544aa84..79e37a8 100644
--- a/libraries/advisor.class.php
+++ b/libraries/advisor.class.php
@@ -129,7 +129,7 @@ class Advisor
                     if (count($jst) > 1) {
                         try {
                             /* Translate */
-                            $str = Advisor::translate($jst[0], $jst[1]);
+                            $str = $this->translate($jst[0], $jst[1]);
                         } catch (Exception $e) {
                             $this->runResult['errors'][] = 'Failed formattingstring for rule \''.$rule['name'].'\'. PHP threw following error: '.$e->getMessage();
                             return;
@@ -137,15 +137,15 @@ class Advisor
 
                         $rule['justification'] = $str;
                     } else {
-                        $rule['justification'] = Advisor::translate($rule['justification']);
+                        $rule['justification'] = $this->translate($rule['justification']);
                     }
-                    $rule['name'] = Advisor::translate($rule['name']);
-                    $rule['issue'] = Advisor::translate($rule['issue']);
+                    $rule['name'] = $this->translate($rule['name']);
+                    $rule['issue'] = $this->translate($rule['issue']);
 
                     $rule['recommendation'] = preg_replace(
                         '/\{([a-z_0-9]+)\}/Ui',
                         '<a href="server_variables.php' . PMA_generate_common_url() . '#filter=\1">\1</a>',
-                        Advisor::translate($rule['recommendation']));
+                        $this->translate($rule['recommendation']));
 
                     break;
         }


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list