r110929 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110928‎ | r110929 | r110930 >
Date:12:58, 8 February 2012
Author:hashar
Status:ok
Tags:
Comment:
debug messages for getFileListInternal() returns
Modified paths:
  • /trunk/phase3/includes/filerepo/backend/FSFileBackend.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/backend/FSFileBackend.php
@@ -463,12 +463,14 @@
464464 $exists = is_dir( $dir );
465465 wfRestoreWarnings();
466466 if ( !$exists ) {
 467+ wfDebug( __METHOD__ . "() given directory does not exist: '$dir'\n" );
467468 return array(); // nothing under this dir
468469 }
469470 wfSuppressWarnings();
470471 $readable = is_readable( $dir );
471472 wfRestoreWarnings();
472473 if ( !$readable ) {
 474+ wfDebug( __METHOD__ . "() given directory is unreadable: '$dir'\n" );
473475 return null; // bad permissions?
474476 }
475477 return new FSFileBackendFileList( $dir );

Status & tagging log