Added a backtrace on Image constructor given bogus title for debugging aid
function Image( $title ) {
global $wgShowEXIF;
+ if( !is_object( $title ) ) {
+ wfDebugDieBacktrace( 'Image constructor given bogus title.' );
+ }
$this->title =& $title;
$this->name = $title->getDBkey();
$this->metadata = serialize ( array() ) ;
if (NS_IMAGE == $this->mTargetObj->getNamespace()) {
/* refresh image metadata cache */
- new Image( $this->mTargetObj->getText(), true );
+ new Image( $this->mTargetObj );
}
return true;