function file_unmunge_filename

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 file.inc file_unmunge_filename($filename)
cle7 file.inc file_unmunge_filename($filename)
elmsmedia7 file.inc file_unmunge_filename($filename)
icor7 file.inc file_unmunge_filename($filename)
meedjum_blog7 file.inc file_unmunge_filename($filename)
mooc7 file.inc file_unmunge_filename($filename)

Undoes the effect of file_munge_filename().

Parameters

$filename: String with the filename to be unmunged.

Return value

An unmunged filename string.

Related topics

File

includes/file.inc, line 1187
API for handling file uploads and server file management.

Code

function file_unmunge_filename($filename) {
  return str_replace('_.', '.', $filename);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.