HomePhabricator

Add NS_FILE namespace to setmainimage if not provided
1857f5fc44b3Unpublished

Authored by Tinss on Jul 18 2018, 6:21 AM.

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add NS_FILE namespace to setmainimage if not provided

The file namespace gets lost between Title::getDbKey() and
Title::newFromDbKey(). When the time comes to output the og:image tag,
the file can no longer be found because it's missing it's namespace.
Instead, we should tranfer the raw name of the file with setExtensionData
and then build the title with Title::newFromText() and force the
NS_FILE namespace in onOutputPageParserOutput so the file is found.

Bug: T199857

Change-Id: Id40f1cf830f0557689a58353b57c958bc10dee7e