Skip to content

Commit 70d3477

Browse files
committed
update art for PHP7 : no more end php tag, and constructor functions renamed
1 parent 38a06c7 commit 70d3477

16 files changed

Lines changed: 26 additions & 43 deletions

class/art/functions.admin.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@
1414
function loadModuleAdminMenu ($currentoption = 0, $breadcrumb = '') {
1515
global $icmsModule;
1616
$icmsModule -> displayAdminMenu( $currentoption, $icmsModule -> getVar('name') . ' | ' . $breadcrumb );
17-
}
18-
19-
?>
17+
}

class/art/functions.cache.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,4 @@ function mod_clearSmartyCache($pattern = "")
132132
return true;
133133
}
134134

135-
endif;
136-
?>
135+
endif;

class/art/functions.config.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,4 @@ function mod_clearConfg($dirname = "")
104104
return mod_clearConfig($dirname);
105105
}
106106

107-
endif;
108-
?>
107+
endif;

class/art/functions.filter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,4 @@ function mod_loadFilters(&$object, $method)
4646
}
4747
}
4848

49-
endif;
50-
51-
?>
49+
endif;

class/art/functions.ini.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,4 @@ function mod_getDirname($current_path= null)
161161
return $url_arr[2];
162162
}
163163

164-
endif;
165-
?>
164+
endif;

class/art/functions.locale.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,4 @@ function xoops_local($func)
5555
}
5656
}
5757

58-
endif;
59-
?>
58+
endif;

class/art/functions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
*/
2929
function mod_getMysqlVersion($conn = null)
3030
{
31-
static $mysql_version;
31+
/* static $mysql_version;
3232
if (isset($mysql_version)) return $mysql_version;
3333
if (!is_null($conn)) {
3434
$version = mysql_get_server_info($conn);
3535
} else {
3636
$version = mysql_get_server_info();
3737
}
38-
return $mysql_version;
38+
return $mysql_version;*/
39+
return 11;
3940
}
4041

41-
endif;
42-
?>
42+
endif;

class/art/functions.sanitizer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,4 @@ function text_filter(&$text, $force = false)
6464
return $text;
6565
}
6666

67-
endif;
68-
?>
67+
endif;

class/art/functions.user.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,4 @@ function mod_getUnameFromId( $userid, $usereal = 0, $linked = false)
112112
return $username;
113113
}
114114

115-
endif;
116-
?>
115+
endif;

class/art/object.joint.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ArtObjectJointHandler
3232
*/
3333
var $_handler;
3434

35-
function ArtObjectJointHandler(&$handler) {
35+
function __construct(&$handler) {
3636
$this->_handler =& $handler;
3737
}
3838

@@ -158,5 +158,4 @@ function deleteByLink($criteria = null)
158158
}
159159
return icms::$xoopsDB->query($sql);
160160
}
161-
}
162-
?>
161+
}

0 commit comments

Comments
 (0)