Showing
1 changed file
with
19 additions
and
18 deletions
| ... | @@ -84,28 +84,29 @@ class ControllerCommonDeveloper extends Controller { | ... | @@ -84,28 +84,29 @@ class ControllerCommonDeveloper extends Controller { |
| 84 | 84 | ||
| 85 | $json = array(); | 85 | $json = array(); |
| 86 | 86 | ||
| 87 | - if (!$this->user->hasPermission('modify', 'common/developer')) { | 87 | + // if (!$this->user->hasPermission('modify', 'common/developer')) { |
| 88 | - $json['error'] = $this->language->get('error_permission'); | 88 | + // $json['error'] = $this->language->get('error_permission'); |
| 89 | - } else { | 89 | + // } else { |
| 90 | - // Before we delete we need to make sure there is a sass file to regenerate the css | 90 | + // // Before we delete we need to make sure there is a sass file to regenerate the css |
| 91 | - $file = DIR_APPLICATION . 'view/stylesheet/bootstrap.css'; | 91 | + // $file = DIR_APPLICATION . 'view/stylesheet/bootstrap.css'; |
| 92 | - | 92 | + |
| 93 | - if (is_file($file) && is_file(DIR_APPLICATION . 'view/stylesheet/sass/_bootstrap.scss')) { | 93 | + // if (is_file($file) && is_file(DIR_APPLICATION . 'view/stylesheet/sass/_bootstrap.scss')) { |
| 94 | - unlink($file); | 94 | + // unlink($file); |
| 95 | - } | 95 | + // } |
| 96 | 96 | ||
| 97 | - $files = glob(DIR_CATALOG . 'view/theme/*/stylesheet/sass/_bootstrap.scss'); | 97 | + // $files = glob(DIR_CATALOG . 'view/theme/*/stylesheet/sass/_bootstrap.scss'); |
| 98 | 98 | ||
| 99 | - foreach ($files as $file) { | 99 | + // foreach ($files as $file) { |
| 100 | - $file = substr($file, 0, -21) . '/bootstrap.css'; | 100 | + // $file = substr($file, 0, -21) . '/bootstrap.css'; |
| 101 | 101 | ||
| 102 | - if (is_file($file)) { | 102 | + // if (is_file($file)) { |
| 103 | - unlink($file); | 103 | + // unlink($file); |
| 104 | - } | 104 | + // } |
| 105 | - } | 105 | + // } |
| 106 | 106 | ||
| 107 | - $json['success'] = sprintf($this->language->get('text_cache'), $this->language->get('text_sass')); | 107 | + // } |
| 108 | - } | 108 | + |
| 109 | + $json['success'] = sprintf($this->language->get('text_cache'), $this->language->get('text_sass')); | ||
| 109 | 110 | ||
| 110 | $this->response->addHeader('Content-Type: application/json'); | 111 | $this->response->addHeader('Content-Type: application/json'); |
| 111 | $this->response->setOutput(json_encode($json)); | 112 | $this->response->setOutput(json_encode($json)); | ... | ... |
-
Please register or login to post a comment