Author: dev
Description:
setHTMLTitle is not respected when called from an extension.
The code spec (comment) says: "If $name is from page title, it can only override names which are also from page title, but if it is not from page title, it can override all other names."
In the latter case it does not.
The body of the function should be:
if ( $frompagetitle && $this->mHTMLtitleFromPagetitle ) {
$this->mHTMLtitle = $name;
}
elseif ( $this->mHTMLtitleFromPagetitle ) {
$this->mHTMLtitle = $name;
$this->mHTMLtitleFromPagetitle = false;
}
else {
$this->mHTMLtitle = $name;
}
The last 3 lines are the fix.
Version: 1.16.x
Severity: normal