Browse Source

Show real path of module if not into custom

Laurent Destailleur 6 years ago
parent
commit
502c52b78f
2 changed files with 9 additions and 1 deletions
  1. 1 0
      htdocs/langs/en_US/modulebuilder.lang
  2. 8 1
      htdocs/modulebuilder/index.php

+ 1 - 0
htdocs/langs/en_US/modulebuilder.lang

@@ -99,3 +99,4 @@ InitStructureFromExistingTable=Build the structure array string of an existing t
 UseAboutPage=Disable the about page
 UseDocFolder=Disable the documentation folder
 UseSpecificReadme=Use a specific ReadMe
+RealPathOfModule=Real path of module

+ 8 - 1
htdocs/modulebuilder/index.php

@@ -1154,9 +1154,16 @@ elseif (! empty($module))
 		$head2[$h][2] = 'buildpackage';
 		$h++;
 
+		// Link to enable / disable
 		print $modulestatusinfo;
 		print ' '.$linktoenabledisable;
-		print '<br><br>';
+		print '<br>';
+
+		if (realpath($dirread.'/'.$modulelowercase) != $dirread.'/'.$modulelowercase)
+		{
+			print $langs->trans("RealPathOfModule").' : <strong>'.realpath($dirread.'/'.$modulelowercase).'</strong><br>';
+		}
+		print '<br>';
 
 		if ($tab == 'description')
 		{