Skip to content
Snippets Groups Projects
Commit 9a7b7a7b authored by young hahn's avatar young hahn
Browse files

#324222 by Anselm Heaton: Replaces include_once() calls with module_load_include().

parent e6aa86f2
No related branches found
Tags 7.x-2.3
No related merge requests found
......@@ -532,13 +532,13 @@ function diff_diffs_show(&$node, $old_vid, $new_vid) {
*/
function _diff_body_rows(&$old_node, &$new_node) {
drupal_add_css(drupal_get_path('module', 'diff') .'/diff.css', 'module', 'all', FALSE);
include_once('DiffEngine.php');
include_once('node.inc');
module_load_include('php', 'diff', 'DiffEngine');
module_load_include('inc', 'diff', 'node');
if (module_exists('taxonomy')) {
include_once('taxonomy.inc');
module_load_include('inc', 'diff', 'taxonomy');
}
if (module_exists('upload')) {
include_once('upload.inc');
module_load_include('inc', 'diff', 'upload');
}
$rows = array();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment