Thread:Project:Support desk/Error message on main page/reply

Let's try that code again, looks like it all got squashed together first time.

94 		}

95

96		$filename = "$wgLocalMessageCache/messages-". wfWikiID;

97		$oldUmask = umask( 0 );

98		wfMkdirParents( $wgLocalMessageCache, 0777 );

99		umask( $oldUmask );

100

101		$file = fopen( $filename, 'w' );

102		if ( !$file ) {

103			wfDebug( "Unable to open local cache file for writing\n" );

104			return;

105		}

Many thanks, Colin