Download & Extend

Notices and RTL issue with book.module

Project:Drupal core
Version:6.x-dev
Component:book.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

After viewing a "Printer-friendly version" of a book page, the following notices appear on the next page load:
* notice: Undefined variable: output in \modules\book\book.module on line 805.
* notice: Undefined variable: output in \modules\book\book.module on line 748.
* notice: Undefined variable: output in \modules\book\book.module on line 805.
* notice: Undefined variable: output in \modules\book\book.module on line 748.
* notice: Undefined variable: content in \modules\book\book.module on line 688.
* notice: Use of undefined constant LANGUAGE_RTL - assumed 'LANGUAGE_RTL' in \modules\book\book.module on line 712.

The "Printer-friendly version" also loads both the regular and RTL stylesheets (consequently the page is right aligned), likely due to the last of the notices.

Comments

#1

A portion of this (Undefined constant LANGUAGE_RTL) came up in http://drupal.org/node/146425 ; I think a fix [for at least a bit of this] is included in that patch.

#2

Status:active» needs review

Attached patch fixes all the notices.

AttachmentSizeStatusTest resultOperations
patch_142.txt1.86 KBIgnored: Check issue status.NoneNone

#3

Status:needs review» reviewed & tested by the community

its ready

#4

Status:reviewed & tested by the community» fixed

Committed to CVS HEAD.

#5

Status:fixed» closed (fixed)
nobody click here