Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
theme system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Jan 2013 at 09:14 UTC
Updated:
16 Sep 2014 at 02:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dcam commentedSetting status...
Comment #3
dcam commentedThe patch in the issue summary no longer applies.
Comment #4
robinvdvleuten commentedYeah it's a rather old one so probably lot of things has changed ;)
Comment #5
amitgoyal commentedI believe the $output variable is now in use in theme_links() function. So the initial patch unnecessary-extra-output.patch is no longer relevant.
I am not sure if we should fix the minor indentation issue here with the attached patch.
Comment #6
dcam commentedThe extra variable assignment still should be removed. It comes immediately after the first assignment, only inside an if statement. Maybe this was a loop at one time and the $output string had to be set to empty at the start of each pass.
As for the indentation issue, we generally do not do extra tasks like this that are out of scope of the issue. If we were already modifying that line then it wouldn't be a problem, but this issue has nothing to do with it. There are at least two reasons why:
The thing to do in this case is to search for any other active issues that may already be cleaning up theme.inc docblocks and add it there or post a follow-up issue to fix the indentation if there isn't one. Although I wouldn't bother for such a minor issue.
Comment #7
amitgoyal commentedSure @dcam and thanks for the detailed explanation!
Please see attached patch which will remove extra variable assignment.
Comment #8
dcam commentedNo problem. I'm glad to help.
This is RTBC.
Comment #11
dcam commentedRandom failure.
Comment #14
dcam commentedComment #18
David_Rothstein commentedCommitted to 7.x - thanks!