<?xml version="1.0"?>
<!-- $Id$ -->
<configuration>
-<!-- <configtab name="storage" desc="Storage Backend"> -->
+ <configtab name="storage" desc="Storage Backend">
<configsection name="storage">
<configheader>Shout Storage</configheader>
<configswitch name="driver" desc="What backend should we use for
</case>
</configswitch>
</configsection>
-<!-- </configtab> -->
+ </configtab>
</configuration>
} elseif (!$context) {
# Attempt to locate the user's "home" context
$context = $shout->getHomeContext();
+ if (is_a($context, 'PEAR_Error')) {
+ $notification->push($context);
+ }
+ $context = '';
}
$vars = &Variables::getDefaultVariables();
#print '<div style="width:95%;left:10px;position:relative">';
#print '</div>';
-require $registry->get('templates', 'horde') . '/common-footer.inc';
\ No newline at end of file
+require $registry->get('templates', 'horde') . '/common-footer.inc';
require_once dirname(__FILE__) . '/Driver/' . $driver . '.php';
$class = 'Shout_Driver_' . $driver;
if (class_exists($class)) {
- return $shout = &new $class($params);
+ $shout = new $class($params);
+ return $shout;
} else {
return false;
}
return $instances[$signature];
}
}
-// }}}
\ No newline at end of file
+// }}}
# FIXME: Handle cases where the managing user isn't a valid telephone
# system user
# FIXME: Handle cases where no attribute is found?
+ if ($res['count'] != 1) {
+ return PEAR::raiseError(_("Unable to determine default context"));
+ }
return $res[0]['context'][0];
}
- // }}}
- // {{{
/**
* Get a context's properties
*