__DIR__ was never defined

The JS files would not lode, when in dev mode because __DIR__ was not
defined
This commit is contained in:
ha99y
2013-10-04 17:18:23 -07:00
parent 8c6aaa3c7d
commit 98aea24fc3

View File

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