[Phpmyadmin-git] [SCM] phpMyAdmin branch, QA_3_4, updated. RELEASE_3_4_3_1-25-ged88c4a

Michal Čihař nijel at users.sourceforge.net
Sun Jul 10 22:47:54 CEST 2011


The branch, QA_3_4 has been updated
       via  ed88c4a7b68c8efd764a364d1a9579aa762ebdaa (commit)
      from  58d25ddcb8a036743e32879c9320dcd802626082 (commit)


- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 libraries/core.lib.php |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/libraries/core.lib.php b/libraries/core.lib.php
index 1350247..80c1f12 100644
--- a/libraries/core.lib.php
+++ b/libraries/core.lib.php
@@ -275,7 +275,13 @@ function PMA_getPHPDocLink($target) {
  */
 function PMA_warnMissingExtension($extension, $fatal = false, $extra = '')
 {
-    $message = sprintf(__('The %s extension is missing. Please check your PHP configuration.'),
+    /* Gettext does not have to be loaded yet here */
+    if (function_exists('__')) {
+        $message = __('The %s extension is missing. Please check your PHP configuration.');
+    } else {
+        $message = 'The %s extension is missing. Please check your PHP configuration.';
+    }
+    $message = sprintf($message,
         '[a@' . PMA_getPHPDocLink('book.' . $extension . '.php') . '@Documentation][em]' . $extension . '[/em][/a]');
     if ($extra != '') {
         $message .= ' ' . $extra;


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list