mirror of
https://github.com/e107inc/e107.git
synced 2025-09-01 18:32:44 +02:00
Deprecated function include_lan() cleanup. Replaced with e107::lan();
This commit is contained in:
@@ -24,8 +24,11 @@ if (!getperms("P") || !plugInstalled('download'))
|
||||
exit() ;
|
||||
}
|
||||
|
||||
include_lan(e_PLUGIN.'download/languages/'.e_LANGUAGE.'/download.php');
|
||||
include_lan(e_PLUGIN.'download/languages/'.e_LANGUAGE.'/admin_download.php');
|
||||
|
||||
e107::lan('download','download'); // e_PLUGIN.'download/languages/'.e_LANGUAGE.'/download.php'
|
||||
e107::lan('download','admin_download'); // e_PLUGIN.'download/languages/'.e_LANGUAGE.'/admin_download.php'
|
||||
|
||||
|
||||
// require_once(e_PLUGIN.'download/handlers/adminDownload_class.php');
|
||||
require_once(e_PLUGIN.'download/handlers/download_class.php');
|
||||
require_once(e_HANDLER.'upload_handler.php');
|
||||
|
@@ -18,7 +18,7 @@ if (!e107::isInstalled('download'))
|
||||
header("location:".e_BASE."index.php");
|
||||
}
|
||||
|
||||
include_lan(e_PLUGIN.'download/languages/'.e_LANGUAGE.'/download.php');
|
||||
e107::lan('download','download'); // Loads e_PLUGIN.'download/languages/'.e_LANGUAGE.'/download.php'
|
||||
|
||||
require_once(e_PLUGIN.'download/handlers/download_class.php');
|
||||
require_once(e_PLUGIN.'download/handlers/category_class.php');
|
||||
|
@@ -22,8 +22,6 @@ class download_cron // include plugin-folder in the name.
|
||||
{
|
||||
function config()
|
||||
{
|
||||
include_lan(e_PLUGIN."download/languages/".e_LANGUAGE."/admin_download.php");
|
||||
|
||||
$cron = array();
|
||||
|
||||
$cron[] = array(
|
||||
@@ -41,7 +39,7 @@ class download_cron // include plugin-folder in the name.
|
||||
function pruneLog()
|
||||
{
|
||||
// Whatever code you wish.
|
||||
e107::getMessage()->add("Executed dummy function within gsitemap/e_cron.php");
|
||||
e107::getMessage()->add("Executed dummy function within download/e_cron.php");
|
||||
return ;
|
||||
}
|
||||
|
||||
|
@@ -4,7 +4,10 @@ if (!defined('e107_INIT'))
|
||||
require_once("../../class2.php");
|
||||
}
|
||||
|
||||
include_lan(e_PLUGIN."download/languages/".e_LANGUAGE."/download.php");
|
||||
|
||||
e107::lan('download','download');
|
||||
|
||||
|
||||
$log = e107::getAdminLog();
|
||||
$id = FALSE;
|
||||
|
||||
@@ -256,6 +259,10 @@ if ($type == "file")
|
||||
exit();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$log->addError("Line".__LINE__.": Couldn't find ".e_DOWNLOAD.e_QUERY);
|
||||
$log->toFile('download_requests','Download Requests', true); // Create a log file and add the log messages
|
||||
require_once(HEADERF);
|
||||
$ns -> tablerender(LAN_dl_61, "<div style='text-align:center'>".LAN_dl_65."<br /><br /><a href='javascript:history.back(1)'>".LAN_dl_64."</a></div>");
|
||||
require_once(FOOTERF);
|
||||
|
Reference in New Issue
Block a user