|
|
@ -1468,7 +1468,7 @@ RDF; |
|
|
|
* @param type $label |
|
|
|
* @param type $label |
|
|
|
* @param string $owner |
|
|
|
* @param string $owner |
|
|
|
* Used to set an object's ownerId attribute. Defaults to current user's |
|
|
|
* Used to set an object's ownerId attribute. Defaults to current user's |
|
|
|
* name. |
|
|
|
* name. If we are not a Drupal user(ie. Drush) defaults to ''. |
|
|
|
* |
|
|
|
* |
|
|
|
* @return DOMDocument |
|
|
|
* @return DOMDocument |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -1485,9 +1485,9 @@ RDF; |
|
|
|
if (!empty($user->name)) { |
|
|
|
if (!empty($user->name)) { |
|
|
|
$owner = $user->name; |
|
|
|
$owner = $user->name; |
|
|
|
} |
|
|
|
} |
|
|
|
// We are not inside Drupal. |
|
|
|
// We are annonamous user. |
|
|
|
else { |
|
|
|
elseif ($user->uid == 0) { |
|
|
|
$owner = 'fedoraAdmin'; |
|
|
|
$owner = 'anonymous'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|