We repeat a lot of the code for including the BB code, so let's bring it into one function, badbehavior_load_includes().

Comments

dave reid’s picture

Status: Active » Needs review
StatusFileSize
new3.5 KB
dave reid’s picture

Also reduces some code with badbehavior_requirements().

gregarios’s picture

I tried applying your patch to the rc2 version but it failed like this:

patch < 673466-badbehavior-simplify-includes-D6_0.patch 
(Stripping trailing CRs from patch.)
patching file badbehavior.install
Hunk #1 FAILED at 33.
Hunk #2 FAILED at 55.
2 out of 2 hunks FAILED -- saving rejects to file badbehavior.install.rej
patching file badbehavior.module
Hunk #1 succeeded at 4 with fuzz 1.
Hunk #2 FAILED at 81.
Hunk #3 FAILED at 115.
Hunk #4 succeeded at 167 (offset -2 lines).
Hunk #5 succeeded at 244 (offset -2 lines).
2 out of 5 hunks FAILED -- saving rejects to file badbehavior.module.rej
dave reid’s picture

Yeah it's made against the current code on the DRUPAL-6--1 CVS branch.

dave reid’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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