feature #293 trigger to generate pwg_representative

* new function upload_file_pdf and upload_file_tiff
* code to handle videos removed for now (discussion with @xbgmsharp)
This commit is contained in:
plegall
2015-12-15 10:12:46 +01:00
parent 5a6f37edf9
commit 8ba7a1587a
2 changed files with 151 additions and 96 deletions
+26
View File
@@ -1277,6 +1277,32 @@ DELETE FROM '.CONFIG_TABLE.'
}
}
/**
* Return a default value for a configuration parameter.
* @since 2.8
*
* @param string $param the configuration value to be extracted (if it exists)
* @param mixed $default_value the default value for the configuration value if it does not exist.
*
* @return mixed The configuration value if the variable exists, otherwise the default.
*/
function conf_get_param($param, $default_value=null)
{
global $conf;
if (isset($conf[$param]))
{
return $conf[$param];
}
elseif (isset($default_value))
{
return $default_value;
}
return null;
}
/**
* Apply *unserialize* on a value only if it is a string
* @since 2.7