Skip to content

Commit

Permalink
// Removed deprecated file
Browse files Browse the repository at this point in the history
  • Loading branch information
Damien Metzger committed Dec 30, 2013
1 parent 30ba927 commit a78717f
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 807 deletions.
2 changes: 1 addition & 1 deletion admin-dev/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function bindDatepicker($id, $time)
function includeDatepicker($id, $time = false)
{
Tools::displayAsDeprecated();
echo '<script type="text/javascript" src="'.__PS_BASE_URI__.'js/jquery/jquery-ui.will.be.removed.in.1.6.js"></script>';
echo '<script type="text/javascript" src="'.__PS_BASE_URI__.'js/jquery/ui/jquery.ui.core.min.js"></script>';
echo '<link type="text/css" rel="stylesheet" href="'.__PS_BASE_URI__.'js/jquery/ui/themes/ui-lightness/jquery.ui.theme.css" />';
echo '<link type="text/css" rel="stylesheet" href="'.__PS_BASE_URI__.'js/jquery/ui/themes/ui-lightness/jquery.ui.datepicker.css" />';
$iso = Db::getInstance()->getValue('SELECT iso_code FROM '._DB_PREFIX_.'lang WHERE `id_lang` = '.(int)Context::getContext()->language->id);
Expand Down
3 changes: 2 additions & 1 deletion classes/Language.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,12 @@ public function moveToIso($newIso)
* Return an array of theme
*
* @return array([theme dir] => array('name' => [theme name]))
* @deprecated will be removed in 1.6
* @deprecated
*/
protected function _getThemesList()
{
Tools::displayAsDeprecated();

static $themes = array();

if (empty($themes))
Expand Down
8 changes: 3 additions & 5 deletions classes/controller/FrontController.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,8 @@ public function initContent()
*/
public function displayHeader($display = true)
{
// This method will be removed in 1.6
Tools::displayAsDeprecated();

$this->initHeader();
$hook_header = Hook::exec('displayHeader');
if ((Configuration::get('PS_CSS_THEME_CACHE') || Configuration::get('PS_JS_THEME_CACHE')) && is_writable(_PS_THEME_DIR_.'cache'))
Expand Down Expand Up @@ -491,7 +491,6 @@ public function displayHeader($display = true)
*/
public function displayFooter($display = true)
{
// This method will be removed in 1.6
Tools::displayAsDeprecated();
$this->smartyOutputContent(_PS_THEME_DIR_.'footer.tpl');
}
Expand All @@ -511,7 +510,7 @@ public function redirect()
}

/**
* 1.4 retrocompatibility - will be removed in 1.6
* 1.4 retrocompatibility
*/
public function displayContent()
{
Expand Down Expand Up @@ -571,8 +570,8 @@ public function display()
}
else
{
// BEGIN - 1.4 retrocompatibility - will be removed in 1.6
Tools::displayAsDeprecated('layout.tpl is missing in your theme directory');

if ($this->display_header)
$this->smartyOutputContent(_PS_THEME_DIR_.'header.tpl');

Expand All @@ -583,7 +582,6 @@ public function display()

if ($this->display_footer)
$this->smartyOutputContent(_PS_THEME_DIR_.'footer.tpl');
// END - 1.4 retrocompatibility - will be removed in 1.6
}

return true;
Expand Down
1 change: 0 additions & 1 deletion config/defines.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
define('_PS_FRONT_CONTROLLER_DIR_', _PS_ROOT_DIR_.'/controllers/front/');

define('_PS_TOOL_DIR_', _PS_ROOT_DIR_.'/tools/');
define('_PS_FPDF_PATH_', _PS_TOOL_DIR_.'fpdf/'); // @deprecated will be removed in 1.6
define('_PS_GEOIP_DIR_', _PS_TOOL_DIR_.'geoip/');
define('_PS_PEAR_XML_PARSER_PATH_', _PS_TOOL_DIR_.'pear_xml_parser/');
define('_PS_SWIFT_DIR_', _PS_TOOL_DIR_.'swift/');
Expand Down
4 changes: 0 additions & 4 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA
*/

/**
* This file will be removed in 1.6
*/

if (isset(Context::getContext()->controller))
$controller = Context::getContext()->controller;
else
Expand Down
4 changes: 0 additions & 4 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA
*/

/**
* This file will be removed in 1.6
*/

if (isset(Context::getContext()->controller))
$controller = Context::getContext()->controller;
else
Expand Down
4 changes: 0 additions & 4 deletions images.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA
*/

/**
* This file will be removed in 1.6
*/

/**
* @deprecated 1.5.0
*/
Expand Down
4 changes: 0 additions & 4 deletions init.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA
*/

/**
* This file will be removed in 1.6
*/

if (isset(Context::getContext()->controller))
$controller = Context::getContext()->controller;
else
Expand Down
782 changes: 0 additions & 782 deletions js/jquery/jquery-ui.will.be.removed.in.1.6.js

This file was deleted.

2 changes: 1 addition & 1 deletion js/retro-compat.js.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
'jquery.hoverIntent.minified.js' =>
array('new_file' => $plugins_folder.'jquery.hoverIntent.js', 'name' => 'hoverIntent'),
'jquery-ui-1.8.10.custom.min.js' =>
array('new_file' => $jquery_folder.'jquery-ui.will.be.removed.in.1.6.js', 'name' => ''),
array('new_file' => $jquery_folder.'ui/jquery.ui.core.min.js', 'name' => ''),
'jquery.treeview.async.js' =>
array('new_file' => $plugins_folder.'treeview-categories/jquery.treeview-categories.async.js', 'name' => 'treeview-categories.async'),
'jquery.treeview.edit.js' =>
Expand Down

0 comments on commit a78717f

Please sign in to comment.