diff --git a/action.php b/action.php index 1137e0a..45cd813 100644 --- a/action.php +++ b/action.php @@ -33,7 +33,7 @@ function getInfo(){ /****************************************************************************** ** Register its handlers with the dokuwiki's event controller */ - function register(Doku_Event_Handler &$controller) { + function register(Doku_Event_Handler $controller) { $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, '_handle_act', array()); $controller->register_hook('TPL_ACT_UNKNOWN', 'BEFORE', $this, 'output', array()); } diff --git a/syntax.php b/syntax.php index 01bcd08..c56dc28 100644 --- a/syntax.php +++ b/syntax.php @@ -43,7 +43,7 @@ function connectTo($mode){ /******************************************************************************/ /* handle the match */ - function handle($match, $state, $pos,Doku_Handler &$handler) { + function handle($match, $state, $pos, Doku_Handler $handler) { global $ID, $conf; $match = substr($match,strlen('{{anss>'),-2); //strip markup from start and end @@ -71,7 +71,7 @@ function handle($match, $state, $pos,Doku_Handler &$handler) { /* render output * @author Taggic */ - function render($mode,Doku_Renderer &$renderer, $ans_conf) { + function render($mode, Doku_Renderer $renderer, $ans_conf) { global $ID, $conf; $xhtml_renderer = new Doku_Renderer_xhtml(); $records = file(DOKU_PLUGIN.'anewssystem/tpl/newstemplate_'.$conf['lang'].'.txt'); @@ -620,8 +620,8 @@ function HidePopup(hoverpopup1, hoverpopup2) } function count_chars(obj, max) { var data = obj.innerHTML; - var extract = data.split(" "); - var bextract = data.split("\n"); + var extract = data.explode(" "); + var bextract = data.explode("\n"); var cextract = extract.length + bextract.length -1; if(cextract>max) output = \'\' + cextract + \'\'; else output = cextract; @@ -697,7 +697,7 @@ function myFunction() { $aFlag = false; $bFlag = false; foreach ($temp_array as $item) { - list($key, $value) = split(":",trim($item),2); + list($key, $value) = explode(":",trim($item),2); $tag_flag = false; if($key=='anchor') { @@ -858,7 +858,7 @@ function myFunction() { // if perishing date is not exceeded then collect the tags foreach ($temp_array as $item) { - list($key, $value) = split(":",trim($item),2); + list($key, $value) = explode(":",trim($item),2); if(($key=='start') && strtotime(trim($value)) < time()) { $aFlag = true; $value = date($this->getConf('d_format'), strtotime($value)); @@ -883,7 +883,7 @@ function myFunction() { } // evaluate the styling parameters - $tokens = preg_split('/\s+/', $tmp,-1, PREG_SPLIT_NO_EMPTY); + $tokens = preg_explode('/\s+/', $tmp,-1, PREG_SPLIT_NO_EMPTY); $div_class = 'newsclouddiv'; foreach ($tokens as $token) { @@ -1007,7 +1007,7 @@ function myFunction() { $bFlag = false; foreach ($temp_array as $item) { - list($key, $value) = split(":",trim($item),2); + list($key, $value) = explode(":",trim($item),2); $tag_flag = false; if($key=='anchor') { $anchor = trim($value); @@ -1187,7 +1187,7 @@ function myFunction() { // split parameter into array with key and data foreach ($split_array as $item) { - list($key, $value) = split("=",trim($item),2); + list($key, $value) = explode("=",trim($item),2); $archive_options = $archive_options + array($key => $value); } // echo $archive_options['tag'].'
'; @@ -1219,7 +1219,7 @@ function myFunction() { $aFlag = false; // flag: start date value exists and start is not in future foreach ($article_array as $item) { - list($key, $value) = split(":",trim($item),2); + list($key, $value) = explode(":",trim($item),2); $tag_flag = false; if($key=='anchor') { $anchor = trim($value); @@ -1496,7 +1496,7 @@ function doHLine(tag1,obj) { // Code for IE textarea.focus(); var sel = document.selection.createRange(); - var list = sel.text.split("\n"); + var list = sel.text.explode("\n"); for(i=0;imax) output = \'\' + cextract + \'\'; else output = cextract;