Browse Source

Fix error in CollectionClass.

Was able to instantiate without a PID, which would mean that the
'collectionObject' object helper would not get created...  Blargh.
pull/101/head
Adam Vessey 13 years ago
parent
commit
01c5a4736f
  1. 4
      CollectionClass.inc
  2. 2
      ObjectHelper.inc

4
CollectionClass.inc

@ -28,12 +28,10 @@ class CollectionClass {
* @return CollectionClass
*/
function __construct($pid = NULL) {
if (!empty($pid)) {
module_load_include('inc', 'fedora_repository', 'ObjectHelper');
$this->collectionObject = new ObjectHelper($pid);
$this->collectionObject = new ObjectHelper();
$this->pid = $pid;
}
}
public static function getCollectionQuery($pid) {
if ($query = self::getCollectionQueryFromStream($pid)) {

2
ObjectHelper.inc

@ -32,8 +32,6 @@ class ObjectHelper {
drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
module_load_include('inc', 'fedora_repository', 'ConnectionHelper');
$connectionHelper = new ConnectionHelper();
//$this->fedoraUser = $connectionHelper->getUser();
//$this->fedoraPass = $connectionHelper->getPassword();
}
private static function getBinaryLength($bin) {

Loading…
Cancel
Save