public static function append_suffix($filename) {
        debugging('The function repository::append_suffix() has been deprecated. Use repository::get_unused_filename() instead.',
            DEBUG_DEVELOPER);
        $pathinfo = pathinfo($filename);
        if (empty($pathinfo['extension'])) {
            return $filename . RENAME_SUFFIX;
        } else {
            return $pathinfo['filename'] . RENAME_SUFFIX . '.' . $pathinfo['extension'];
        }
    }
public static function append_suffix($filename) {
        debugging('The function repository::append_suffix() has been deprecated. Use repository::get_unused_filename() instead.',
            DEBUG_DEVELOPER);
        $pathinfo = pathinfo($filename);
        if (empty($pathinfo['extension'])) {
            return $filename . RENAME_SUFFIX;
        } else {
            return $pathinfo['filename'] . RENAME_SUFFIX . '.' . $pathinfo['extension'];
        }
    }
public static function append_suffix ( $ filename ) { debugging ( 'The function repository::append_suffix() has been deprecated. Use repository::get_unused_filename() instead.' , DEBUG_DEVELOPER ) ; $ pathinfo = pathinfo ( $ filename ) ; if ( empty ( $ pathinfo [ 'extension' ] ) ) { return $ filename . RENAME_SUFFIX ; } else { return $ pathinfo [ 'filename' ] . RENAME_SUFFIX . '.' . $ pathinfo [ 'extension' ] ; } }
Append a suffix to filename.

@static
@param string $filename
@return string
@deprecated since 2.5
Append a suffix to filename .