From 57d846dbe973ec13691e4b690ea25ee5fa6d145e Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Tue, 6 Oct 2009 22:11:46 +0200
Subject: [PATCH] do not display full path names in JS comments FS#1770

Ignore-this: e25dcba3daa9d89efbeb1bfdfe0f24bb

darcs-hash:20091006201146-7ad00-ca35f4e0bd96cbe008fb77ae8391de2a74b9fc49.gz
---
 lib/exe/js.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/exe/js.php b/lib/exe/js.php
index b11dfa6ce..f7bd574ed 100644
--- a/lib/exe/js.php
+++ b/lib/exe/js.php
@@ -97,9 +97,9 @@ function js_out(){
 
     // load files
     foreach($files as $file){
-        echo "\n\n/* XXXXXXXXXX begin of $file XXXXXXXXXX */\n\n";
+        echo "\n\n/* XXXXXXXXXX begin of ".str_replace(DOKU_INC, '', $file) ." XXXXXXXXXX */\n\n";
         js_load($file);
-        echo "\n\n/* XXXXXXXXXX end of $file XXXXXXXXXX */\n\n";
+        echo "\n\n/* XXXXXXXXXX end of " . str_replace(DOKU_INC, '', $file) . " XXXXXXXXXX */\n\n";
     }
 
 
-- 
GitLab