Merge pull request #800 from Ha99y/20131004_retro-compat.js.php

__DIR__ is available since PHP 5.3
This commit is contained in:
Rémi Gaillard
2013-10-07 00:35:02 -07:00

View File

@@ -3,7 +3,8 @@
include('../config/config.inc.php');
header('content-type: application/x-javascript');
$plugins_folder = __DIR__.'/jquery/plugins/';
$jquery_folder = dirname(__FILE__).'/jquery/';
$plugins_folder = $jquery_folder.'plugins/';
$plugins = array(
'ajaxfileupload.js' =>
@@ -51,7 +52,7 @@ $plugins = array(
'jquery.hoverIntent.minified.js' =>
array('new_file' => $plugins_folder.'jquery.hoverIntent.js', 'name' => 'hoverIntent'),
'jquery-ui-1.8.10.custom.min.js' =>
array('new_file' => __DIR__.'/jquery/jquery-ui.will.be.removed.in.1.6.js', 'name' => ''),
array('new_file' => $jquery_folder.'jquery-ui.will.be.removed.in.1.6.js', 'name' => ''),
'jquery.treeview.async.js' =>
array('new_file' => $plugins_folder.'treeview-categories/jquery.treeview-categories.async.js', 'name' => 'treeview-categories.async'),
'jquery.treeview.edit.js' =>