Skip to content

Commit

Permalink
Fixed|Web|Builder: Use of a deprecated PHP function
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 8, 2017
1 parent 29d1c57 commit 5be86a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/classes/frontcontroller.class.php
Expand Up @@ -273,7 +273,7 @@ public static function ErrorHandler($errno, $errmsg, $filename, $linenum, $vars)
if(ini_get('display_errors'))
{
printf("<br />\n<b>%s</b>: %s in <b>%s</b> on line <b>%d</b><br /><br />\n",
$errortype[$errno], $errmsg, $filename, $linenum);
isset($errortype[$errno])? $errortype[$errno] : "$errno", $errmsg, $filename, $linenum);

return true;
}
Expand Down
4 changes: 3 additions & 1 deletion webapi/1/include/api_config.inc.php-example
Expand Up @@ -13,11 +13,13 @@ define('DENG_DB_NAME', '');
define('DENG_DB_USER', '');
define('DENG_DB_PASSWORD', '');

define('DENG_CACHE_MAX_AGE', 15*60);
define('DENG_CACHE_PATH', '/');
define('DENG_FILE_ARCHIVE_PATH', '/');
define('DENG_ARCHIVE_URL', 'http://');
define('DENG_API_URL', 'http://');
define('DENG_GITHUB_URL', 'http://');
define('DENG_TRACKER_URL', 'http://');
define('DENG_TRACKER_GIT_URL', 'http://');
define('DENG_GITHUB_URL', 'http://');
define('DENG_WIKI_URL', 'http://');
define('RFC_TIME', "%a, %d %b %Y %H:%M:%S +0000");
2 changes: 1 addition & 1 deletion webapi/1/include/builds.inc.php
Expand Up @@ -49,7 +49,7 @@ function detect_user_platform()

function omit_zeroes($version)
{
$parts = split("\\.", $version);
$parts = explode(".", $version);
while (count($parts) > 2 && array_slice($parts, -1)[0] == '0') {
$parts = array_slice($parts, 0, -1);
}
Expand Down

0 comments on commit 5be86a4

Please sign in to comment.