Closed Bug 301672 Opened 19 years ago Closed 19 years ago

Breadcrumbs extension needs to use '.' in addition to ':' to seperate pages

Categories

(developer.mozilla.org Graveyard :: General, defect, P1)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Callek, Assigned: Callek)

Details

Attachments

(2 files, 1 obsolete file)

The breadcrumbs extension needs to also use '.' to seperate pages to facilitate
window.open type page-names.  This should not assume anything about "what comes
later" to allow uses like:

Gecko_DOM_Reference:window.open:page1

to link like

Gecko_DOM_Reference > window > open > page1

patch forthcoming
Attached patch Allow '.' β€” β€” Splinter Review
This should do it;

See (temporarily hosted) http://drapostles.hypermart.net/test.php for a running
copy of the biggest change here.
and http://drapostles.hypermart.net/test.php.txt for source of the test file.
See Bug 301677 for what I envision we can do once this is applied.
Priority: -- → P1
Attachment #190103 - Flags: review?(shaver)
Comment on attachment 190103 [details] [diff] [review]
Allow '.'

>+//Note this extension only works, as written for PHP version 4.0.5 and up
> $wgExtensionFunctions[] = "mzBreadcrumbs";

Remove bogus comma, and explain what the specific dependency is that requires
4.0.5+. 

>+    //two array shifts here will grab the ":" and fixup $parts at the same time.

Can you elaborate on "fixup" (and spell it as "fix up"), please?

>+  for ($i =0; $i < count($parts ); $i+=2 ) {
>+    if ( $i > 1 ) {

Style in this file has spaces around operators ($i += 2), and not around
predicates
(if ($i > 1), while ($j < $i)).

r=shaver with those nits fixed, thanks for taking care of this for me!
Attachment #190103 - Flags: review?(shaver) → review+
Attached patch Fix Review Nits (obsolete) β€” β€” Splinter Review
Shaver, thanks for checking in my first patch to get this stuff started, here
is the patch correcting the review nits, when this gets checked in, you can
resolve this bug. (or I can resolve)
Attachment #191067 - Flags: review?(shaver)
Grr, damn comment typo...Thanks to Colin on #bmo for pointing it out to me.
Attachment #191067 - Attachment is obsolete: true
Attachment #191069 - Flags: review?(shaver)
Attachment #191067 - Flags: review?(shaver)
Comment on attachment 191069 [details] [diff] [review]
Fix Review Nits (for real)

Dria poked at these review nit fixups for me, and comitted the file to cvs.
Attachment #191069 - Flags: review?(shaver) → review+
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Component: developer.mozilla.org → Infrastructure
Flags: review+
Product: mozilla.org → Mozilla Developer Center
QA Contact: qa → infrastructure
Version: other → unspecified
Attachment #190103 - Flags: review+
Attachment #191069 - Flags: review+
Component: Deki Infrastructure → Other
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: