Changeset 7125 for extensions/GMaps/maintain.inc.php
- Timestamp:
- Oct 7, 2010, 8:04:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/maintain.inc.php
r7054 r7125 40 40 } 41 41 42 function gpcMsgError(&$errors )42 function gpcMsgError(&$errors, $errorMessage) 43 43 { 44 global $gpcNeeded; 45 $msg=sprintf(l10n('To install this plugin, you need to install Grum Plugin Classes %s before'), GMAPS_GPC_NEEDED); 44 switch($errorMessage) 45 { 46 case 'gpc': 47 $msg=sprintf(l10n('To install this plugin, you need to install Grum Plugin Classes %s before'), GMAPS_GPC_NEEDED); 48 break; 49 case 'amd': 50 $msg=sprintf(l10n('To install this plugin, you need to install Advanced Metadata %s before'), GMAPS_AMD_NEEDED); 51 break; 52 } 53 46 54 if(is_array($errors)) 47 55 { … … 64 72 { 65 73 global $prefixeTable, $gpcInstalled; 66 if( $gpcInstalled)74 if(!$gpcInstalled) 67 75 { 68 $gmaps=new GMaps_Install($prefixeTable, __FILE__);69 $result=$gmaps->install();76 gpcMsgError($errors, 'gpc'); 77 return(false); 70 78 } 71 else79 if(GMaps_root::checkAMDActivated()=='none') 72 80 { 73 gpcMsgError($errors); 81 amdMsgError($errors, 'amd'); 82 return(false); 74 83 } 84 85 $gmaps=new GMaps_Install($prefixeTable, __FILE__); 86 $result=$gmaps->install(); 75 87 } 76 88 … … 107 119 else 108 120 { 109 gpcMsgError($errors );121 gpcMsgError($errors, 'gpc'); 110 122 } 111 123 }
Note: See TracChangeset
for help on using the changeset viewer.