'sc' => 'widget',
'statusButton' => $this->_params['triggerId'],
'target' => $this->_params['targetId'],
- 'url' => $this->_getUrl('SpellChecker', 'horde', array('input' => $this->_params['targetId']))
+ 'url' => strval($this->_getUrl('SpellChecker', 'horde', array('input' => $this->_params['targetId'])))
);
if (isset($this->_params['states'])) {
$opts['bs'] = $this->_params['states'];
// comments.
$tmp = preg_replace(array('/(url\(["\']?)([^\/])/i', '/\s+/', '/\/\*.*?\*\//'), array('$1' . $path . '$2', ' ', ''), implode('', file($file['f'], $flags)));
if ($GLOBALS['browser']->hasFeature('dataurl')) {
- $tmp = preg_replace_callback('/(background(?:-image)?:[^;}]*(?:url\(["\']?))(.*?)((?:["\']?\)))/i', array('Horde', 'stylesheetCallback'), $tmp);
+ $tmp = preg_replace_callback('/(background(?:-image)?:[^;}]*(?:url\(["\']?))(.*?)((?:["\']?\)))/i', array(self, 'stylesheetCallback'), $tmp);
}
$out .= $tmp;
}
*/
public function stylesheetCallback($matches)
{
- return $matches[1] . Horde::base64ImgData($matches[2]) . $matches[3];
+ return $matches[1] . self::base64ImgData($matches[2]) . $matches[3];
}
/**
foreach ($apps as $app) {
$themes_fs = $GLOBALS['registry']->get('themesfs', $app) . '/';
- $themes_uri = Horde::url($GLOBALS['registry']->get('themesuri', $app), false, -1) . '/';
+ $themes_uri = self::url($GLOBALS['registry']->get('themesuri', $app), false, -1) . '/';
foreach ($css_list as $css_name) {
$css[$themes_fs . $css_name . '.css'] = $themes_uri . $css_name . '.css';
*/
static public function popupJs($url, $options = array())
{
- Horde::addScriptFile('popup.js', 'horde');
+ self::addScriptFile('popup.js', 'horde');
$params = new stdClass;