diff options
-rw-r--r-- | inc/FeedParser.php | 2 | ||||
-rw-r--r-- | inc/mail.php | 3 | ||||
-rw-r--r-- | lib/scripts/behaviour.js | 7 | ||||
-rw-r--r-- | lib/scripts/media.js | 6 | ||||
-rw-r--r-- | lib/styles/all.css | 1 | ||||
-rw-r--r-- | lib/tpl/index.php | 2 |
6 files changed, 12 insertions, 9 deletions
diff --git a/inc/FeedParser.php b/inc/FeedParser.php index b98350da7..235bed46e 100644 --- a/inc/FeedParser.php +++ b/inc/FeedParser.php @@ -49,7 +49,7 @@ class FeedParser_File extends SimplePie_File { */ function FeedParser_File($url, $timeout=10, $redirects=5, $headers=null, $useragent=null, $force_fsockopen=false) { - parent::__construct(); + @parent::__construct(); $this->http = new DokuHTTPClient(); $this->success = $this->http->sendRequest($url); diff --git a/inc/mail.php b/inc/mail.php index 8742e17f6..01b2895e1 100644 --- a/inc/mail.php +++ b/inc/mail.php @@ -104,6 +104,9 @@ function _mail_send_action($data) { $headers = isset($data['headers']) ? $data['headers'] : null; $params = isset($data['params']) ? $data['params'] : null; + // discard mail request if no recipients are available + if(trim($to) === '' && trim($cc) === '' && trim($bcc) === '') return false; + // end additional code to support event ... original mail_send() code from here if(defined('MAILHEADER_ASCIIONLY')){ diff --git a/lib/scripts/behaviour.js b/lib/scripts/behaviour.js index 62c20eb0f..7cc65579e 100644 --- a/lib/scripts/behaviour.js +++ b/lib/scripts/behaviour.js @@ -8,7 +8,6 @@ * automatically whenever a certain object is in the DOM or a certain CSS * class was found */ - var dw_behaviour = { init: function(){ @@ -24,9 +23,9 @@ var dw_behaviour = { * Looks for an element with the ID scroll__here at scrolls to it */ scrollToMarker: function(){ - var obj = jQuery('#scroll__here'); - if(obj.length) { - obj[0].scrollIntoView(); + var $obj = jQuery('#scroll__here'); + if($obj.length) { + $obj[0].scrollIntoView(); } }, diff --git a/lib/scripts/media.js b/lib/scripts/media.js index bcdba2a48..ebbee5a78 100644 --- a/lib/scripts/media.js +++ b/lib/scripts/media.js @@ -303,7 +303,7 @@ $.post( DOKU_BASE + 'lib/exe/ajax.php', - link.attr('search').substr(1) + '&call=medians', + link[0].search.substr(1) + '&call=medians', function (data) { ul.html(data); listitem.append(ul); @@ -326,7 +326,7 @@ event.preventDefault(); - jQuery.remove('div.success, div.info, div.error, div.notify'); + jQuery('div.success, div.info, div.error, div.notify').remove(); content = $('#media__content'); content.html('<img src="' + DOKU_BASE + 'lib/images/loading.gif" alt="..." class="load" />'); @@ -334,7 +334,7 @@ // fetch the subtree $.post( DOKU_BASE + 'lib/exe/ajax.php', - link.attr('search').substr(1)+'&call=medialist', + link[0].search.substr(1)+'&call=medialist', function (data) { content.html(data); prepare_content(content); diff --git a/lib/styles/all.css b/lib/styles/all.css index dd9f46462..915ced5d6 100644 --- a/lib/styles/all.css +++ b/lib/styles/all.css @@ -5,6 +5,7 @@ div.clearer { clear: both; + font-size: 0; line-height: 0; height: 0; overflow: hidden; diff --git a/lib/tpl/index.php b/lib/tpl/index.php index 20abea20c..0273e5678 100644 --- a/lib/tpl/index.php +++ b/lib/tpl/index.php @@ -9,7 +9,7 @@ * @author Anika Henke <anika@selfthinker.org> */ if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../'); -if(!define('NOSESSION')) define('NOSESSION',1); +if(!defined('NOSESSION')) define('NOSESSION',1); require_once(DOKU_INC.'inc/init.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |