Problem/Motivation

Trying to use redis's path.inc but it was saying

Cannot redeclare drupal_path_initialize()

Looked around my code base and noticed this module was hardcoding the path.

Proposed resolution

Do what the roman's do.

  require_once DRUPAL_ROOT . '/' . variable_get('path_inc', 'includes/path.inc');

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 hardcoded_path_inc-2595127-2.patch639 bytesjoelpittet

Comments

joelpittet created an issue. See original summary.

joelpittet’s picture

Status: Active » Needs review
StatusFileSize
new639 bytes

Here's the thought.

  • stefan.r committed eb0194c on 7.x-2.x authored by joelpittet
    Issue #2595127 by joelpittet: Hardcoded path.inc makes it impossible to...
stefan.r’s picture

Status: Needs review » Fixed

Thanks, committed and included in 2.0!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.