|
|
@ -227,13 +227,13 @@ function islandora_theme() { |
|
|
|
return array( |
|
|
|
return array( |
|
|
|
// default object template |
|
|
|
// default object template |
|
|
|
'islandora_default' => array( |
|
|
|
'islandora_default' => array( |
|
|
|
'file' => 'theme/islandora.theme.inc', |
|
|
|
'file' => 'theme/theme.inc', |
|
|
|
'template' => 'theme/islandora-object', |
|
|
|
'template' => 'theme/islandora-object', |
|
|
|
'variables' => array('islandora_object' => NULL), |
|
|
|
'variables' => array('islandora_object' => NULL), |
|
|
|
), |
|
|
|
), |
|
|
|
// default edit page |
|
|
|
// default edit page |
|
|
|
'islandora_default_edit' => array( |
|
|
|
'islandora_default_edit' => array( |
|
|
|
'file' => 'theme/islandora.theme.inc', |
|
|
|
'file' => 'theme/theme.inc', |
|
|
|
'template' => 'theme/islandora-object-edit', |
|
|
|
'template' => 'theme/islandora-object-edit', |
|
|
|
'variables' => array('islandora_object' => NULL), |
|
|
|
'variables' => array('islandora_object' => NULL), |
|
|
|
), |
|
|
|
), |
|
|
@ -615,7 +615,7 @@ function islandora_tokened_object_load($object_id, $map) { |
|
|
|
if (array_key_exists('token', $_GET)) { |
|
|
|
if (array_key_exists('token', $_GET)) { |
|
|
|
$token = filter_input(INPUT_GET, 'token', FILTER_SANITIZE_STRING); |
|
|
|
$token = filter_input(INPUT_GET, 'token', FILTER_SANITIZE_STRING); |
|
|
|
if ($token) { |
|
|
|
if ($token) { |
|
|
|
module_load_include('inc', 'islandora', 'includes/islandora_authtokens'); |
|
|
|
module_load_include('inc', 'islandora', 'includes/authtokens'); |
|
|
|
$token_user = islandora_validate_object_token($object_id, $map[4], $token); |
|
|
|
$token_user = islandora_validate_object_token($object_id, $map[4], $token); |
|
|
|
$token_user = $token_user ? user_load($token_user->uid) : NULL; |
|
|
|
$token_user = $token_user ? user_load($token_user->uid) : NULL; |
|
|
|
islandora_get_tuque_connection($token_user); |
|
|
|
islandora_get_tuque_connection($token_user); |
|
|
@ -794,7 +794,7 @@ function islandora_delete_datastream(FedoraDatastream &$datastream) { |
|
|
|
* Removes expired authentication tokens. |
|
|
|
* Removes expired authentication tokens. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function islandora_cron() { |
|
|
|
function islandora_cron() { |
|
|
|
module_load_include('inc', 'islandora', 'includes/islandora_authtokens'); |
|
|
|
module_load_include('inc', 'islandora', 'includes/authtokens'); |
|
|
|
islandora_remove_expired_tokens(); |
|
|
|
islandora_remove_expired_tokens(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|