aboutsummaryrefslogtreecommitdiffstats
path: root/langs/diff.php
diff options
context:
space:
mode:
Diffstat (limited to 'langs/diff.php')
-rw-r--r--langs/diff.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/langs/diff.php b/langs/diff.php
index cbbbc9486..70ff102c6 100644
--- a/langs/diff.php
+++ b/langs/diff.php
@@ -45,7 +45,7 @@ if($resource =='about/license') {
$license = false;
}
-if ($source_file == '../_nav/langs/en.lang') {
+if (false !== strstr($source_file, '../_nav/langs/en.')) {
$file = substr($target_file, 14);
$note = '<span style="color: red; font-weight: bold"> NOTE: THIS IS TRANSLATION OF NAVIGATION SO LOCATION FOR COMMIT IS DIFFERENT!</span>';
$commit = '<a href="//svnweb.mageia.org/web/www/trunk/_nav/langs/' . $file . '?view=markup">web/www/trunk/_nav/langs/' . $file . '</a> and for now to the <a href="//svnweb.mageia.org/web/nav/langs/' . $file . '?view=markup">web/nav/langs/' . $file . '</a> too';
@@ -59,7 +59,7 @@ $source_file_path = realpath($source_file);
$target_file_path = realpath($target_file);
if (false === strstr($source_file_path, '/langs/') ||
- false == strstr($target_file_path, '/langs/')) {
+ false === strstr($target_file_path, '/langs/')) {
die('no sorry');
}