mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
Change all absolute paths to relative paths, fixed #13
This commit is contained in:
parent
2dc3e34951
commit
aac1e25c9e
8 changed files with 77 additions and 61 deletions
|
@ -1,3 +1,19 @@
|
|||
/**
|
||||
* 2011 Peter 'Pita' Martischka
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS-IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
var settings = require('./settings');
|
||||
var async = require('async');
|
||||
var fs = require('fs');
|
||||
|
@ -112,7 +128,7 @@ exports.padJS = function(req, res)
|
|||
var quote = item.search("_Q") != -1;
|
||||
|
||||
//read the included file
|
||||
fs.readFile(".." + filename, "utf-8", function(err, data)
|
||||
fs.readFile("../" + filename, "utf-8", function(err, data)
|
||||
{
|
||||
//compress the file
|
||||
if(type == "JS")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue