Skip to content

Commit

Permalink
Minor code fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jbogdani committed May 1, 2021
1 parent 30811a4 commit 8aea3e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions lib/Out.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private function loadSettings($get, $lang = false)

// Set page
if ($get['page']) {
$this->cfg['page'] = (int)str_replace('/', null, $get['page']);
$this->cfg['page'] = (int)str_replace('/', '', $get['page']);
}

if ($get['art_title']) {
Expand Down Expand Up @@ -274,7 +274,7 @@ public function getArticleTags($article = false)
if (!$this->data['article'][$article]['tags']) {
$art = $this->getArticle();

if (!$art->id) {
if (!$art['id']) {
return false;
}

Expand Down Expand Up @@ -529,7 +529,7 @@ private function setPageData()
$this->data['page']['mission'] = cfg::get('mission');

// IMAGE
$path2img = str_replace(utils::getBaseUrl(), null, $this->data['article'][$this->getTextId()]['art_img']['orig']);
$path2img = str_replace(utils::getBaseUrl(), '', $this->data['article'][$this->getTextId()]['art_img']['orig']);

if (file_exists($path2img)) {
// 1. check first for article image
Expand Down Expand Up @@ -830,7 +830,7 @@ public function getData($key = false)
require_once(SITE_DIR . 'modules/tmpldata/preProcess.php');

if (class_exists('preProcess')) {
$pp = new preProcess;
$pp = new preProcess();
$this->data['tmpl_data'] = $pp($this->data['tmpl_data'], $this);
}
}
Expand Down
3 changes: 1 addition & 2 deletions modules/admin/tmpl/loginForm.twig
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ if (typeof recaptchaCallback !== 'function') {
if (called) return;
$('.g-recaptcha').each(function(i, el){
grecaptcha.render(el, {
'sitekey' : $(el).data('sitekey'),
{% if lang %} 'hl':'{{ lang }}',{% endif %}
{% if lang %}'hl':'{{ lang }}',{% endif %}
'callback': function(response) {
if (response.length > 0){
$('#login-button').prop('disabled', false);
Expand Down
1 change: 1 addition & 0 deletions version
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
5.5.9[] = "Minor code fixes"
5.5.8[] = "Removed support for bower in userform_ctrl"
5.5.8[] = "DownloadAndCount::resolvePath is static method"
5.5.7[] = "Typo fix"
Expand Down

0 comments on commit 8aea3e3

Please sign in to comment.