* (bug 6887) PHP error for call to getId() on bad input to Special:Revisiondelete
* (bug 6888) PHP error for call to getTimestamp() on bad input to Special:Revisiondelete
* (bug 7252) Use dvipng support in texvc math rastrization. dvipng is required if texvc is rebuilt.
+* (bug 7279) Use wfBaseName in place of basename() in more places
+
== Languages updated ==
# Get filenames/directories
$filename = realpath( $wgUploadDirectory . $_SERVER['PATH_INFO'] );
$realUploadDirectory = realpath( $wgUploadDirectory );
-$imageName = $wgContLang->getNsText( NS_IMAGE ) . ":" . basename( $_SERVER['PATH_INFO'] );
+$imageName = $wgContLang->getNsText( NS_IMAGE ) . ":" . wfBaseName( $_SERVER['PATH_INFO'] );
# Check if the filename is in the correct directory
if ( substr( $filename, 0, strlen( $realUploadDirectory ) ) != $realUploadDirectory ) {
);
$this->file = $file;
- $this->basename = basename( $this->file );
+ $this->basename = wfBaseName( $this->file );
$this->makeFlatExifTags();
array_shift( $against );
}
- array_push( $pieces, basename( $path ) );
+ array_push( $pieces, wfBaseName( $path ) );
return implode( '/', $pieces );
}
glob( "{$this->sharedStaticDirectory}/thumb/$dir/*" ) );
foreach ( $paths as $path ) {
- $file = basename( $path );
+ $file = wfBaseName( $path );
if ( !(++$i % REPORTING_INTERVAL ) ) {
print "$i\r";
}
# Batch "upload" operation
foreach( $files as $file ) {
- $base = basename( $file );
+ $base = wfBaseName( $file );
# Validate a title
$title = Title::makeTitleSafe( NS_IMAGE, $base );