Skip to content

Commit 3804212

Browse files
authored
Fix old textsanitizer (#17)
* $icmsModule transform to icms::$module * add missing index files * update version info * update readme * add deploy action * no src folder yet * move sourcecode to src folder * moving to src * moving to src, 3 * moving to src. images * github actions now pushes from src folder * icms_version constants added * Create index.html * re-adding admin folder * add block, class * Create index.html * Create index.html * Add default imageset * upload templates * upload include folder * cleanup $icmsModule * cleanup old $icmsModule * cleanup old $icmsModule * cleanup old $icmsModule * cleanup old $icmsModule * Update Crowdin configuration file * cleanup old MyTextSanitizer
1 parent abf494d commit 3804212

5 files changed

Lines changed: 13 additions & 13 deletions

File tree

src/blocks/iforum_block.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function b_iforum_show($options)
5050
global $access_forums;
5151
$modulename = basename(dirname(dirname(__FILE__ ) ) );
5252
$db = Database::getInstance();
53-
$myts = MyTextSanitizer::getInstance();
53+
$myts = icms_core_Textsanitizer::getInstance();
5454
$block = array();
5555
$i = 0;
5656
$order = "";
@@ -180,7 +180,7 @@ function b_iforum_topic_show($options)
180180
global $access_forums;
181181
$modulename = basename(dirname(dirname(__FILE__ ) ) );
182182
$db =icms_db_Factory::instance();
183-
$myts =MyTextSanitizer::getInstance();
183+
$myts =icms_core_Textsanitizer::getInstance();
184184
$block = array();
185185
$i = 0;
186186
$order = "";
@@ -325,7 +325,7 @@ function b_iforum_post_show($options)
325325
global $access_forums;
326326
$modulename = basename(dirname(dirname(__FILE__ ) ) );
327327
$db =Database::getInstance();
328-
$myts =MyTextSanitizer::getInstance();
328+
$myts =icms_core_Textsanitizer::getInstance();
329329
$block = array();
330330
$i = 0;
331331
$order = "";
@@ -471,7 +471,7 @@ function b_iforum_author_show($options)
471471
global $access_forums;
472472
$modulename = basename(dirname(dirname(__FILE__ ) ) );
473473
$db =Database::getInstance();
474-
$myts =MyTextSanitizer::getInstance();
474+
$myts =icms_core_Textsanitizer::getInstance();
475475
$block = array();
476476
$i = 0;
477477
$type = "topic";
@@ -850,4 +850,4 @@ function b_iforum_author_edit($options)
850850

851851
return $form;
852852
}
853-
?>
853+
?>

src/header.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
* @author modified by stranger
2323
* @version $Id$
2424
*/
25-
25+
2626
include_once '../../mainfile.php';
2727
include_once ICMS_ROOT_PATH."/modules/".icms::$module->getVar("dirname")."/include/vars.php";
2828
include_once ICMS_ROOT_PATH."/modules/".icms::$module->getVar("dirname")."/include/functions.php";
2929
include_once ICMS_ROOT_PATH."/modules/".icms::$module->getVar("dirname")."/class/art/functions.php";
30-
31-
$myts = MyTextSanitizer::getInstance();
32-
30+
31+
$myts = icms_core_Textsanitizer::getInstance();
32+
3333
$iforum_module_header = '';
3434
$iforum_module_header .= '<link rel="alternate" type="application/rss+xml" title="'.icms::$module->getVar('name').'" href="'.ICMS_URL.'/modules/'.icms::$module->getVar('dirname').'/rss.php" />';
3535
if (!empty(icms::$module->config['pngforie_enabled']))
@@ -43,5 +43,5 @@
4343
<script src="include/js/iforum_toggle.js" type="text/javascript"></script>
4444
';
4545
$icms_module_header = $iforum_module_header; // for cache hack
46-
46+
4747
iforum_welcome();

src/newtopic.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
$pid = 0;
6565
$subject = "";
6666
$message = "";
67-
$myts = MyTextSanitizer::getInstance();
67+
$myts = icms_core_Textsanitizer::getInstance();
6868
$hidden = "";
6969
$subject_pre = "";
7070
$dohtml = 1;

src/reply.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
$icmsConfig["module_cache"][icms::$module->getVar("mid")] = 0;
8989
include ICMS_ROOT_PATH.'/header.php';
9090

91-
$myts = MyTextSanitizer::getInstance();
91+
$myts = icms_core_Textsanitizer::getInstance();
9292
$isadmin = iforum_isAdmin($forum_obj);
9393
$forumpostshow = $post_handler->getByLimit($topic_id, 5);
9494

src/report.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
$online_handler->init($forum);
7575
}
7676

77-
$myts = MyTextSanitizer::getInstance();
77+
$myts = icms_core_Textsanitizer::getInstance();
7878

7979
if (isset($_POST['submit']) )
8080
{

0 commit comments

Comments
 (0)