Skip to content

Commit 7f8b228

Browse files
committed
Removed function get_favorites()
Removed last function call to get_favorites. Function became deprecated earilier how ever there was still call in login function. There fore code that was allready has been removed became deprecated/ Only remove after hestiacp#926 has been merged
1 parent 8c3d792 commit 7f8b228

File tree

2 files changed

+0
-137
lines changed

2 files changed

+0
-137
lines changed

bin/v-list-user-favourites

Lines changed: 0 additions & 117 deletions
This file was deleted.

web/inc/main.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -103,26 +103,6 @@
103103
$user = $_SESSION['look'];
104104
}
105105

106-
function get_favourites(){
107-
exec (HESTIA_CMD."v-list-user-favourites ".$_SESSION['user']." json", $output, $return_var);
108-
// $data = json_decode(implode('', $output).'}', true);
109-
$data = json_decode(implode('', $output), true);
110-
$data = array_reverse($data,true);
111-
$favourites = array();
112-
113-
foreach($data['Favourites'] as $key => $favourite){
114-
$favourites[$key] = array();
115-
116-
$items = explode(',', $favourite);
117-
foreach($items as $item){
118-
if($item)
119-
$favourites[$key][trim($item)] = 1;
120-
}
121-
}
122-
123-
$_SESSION['favourites'] = $favourites;
124-
}
125-
126106

127107
function check_error($return_var) {
128108
if ( $return_var > 0 ) {

0 commit comments

Comments
 (0)