Plugin Directory

Changeset 2520496


Ignore:
Timestamp:
04/23/2021 03:57:32 PM (5 years ago)
Author:
joanv
Message:

fix url cache

Location:
jobsearch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • jobsearch/frontEnd/job/jobDetail.php

    r2510924 r2520496  
    3939                $urlHome = $_SESSION["searchUrl"];
    4040            } else {
    41                 $url = $helper->tdb_get_search_url();
    42                 if($url == ''){
     41                $urlTmp = $helper->tdb_get_search_url();
     42                if($urlTmp == ''){
    4343                    $urlHome = $urlArray["home"];
    4444                } else {
    45                     $urlHome = $url;
     45                    $urlHome = $urlTmp;
    4646                }
    4747            }
  • jobsearch/jobsearch.php

    r2514553 r2520496  
    33Plugin Name: Tamago-DB Job Board
    44Description: Job board integrated with the ATS/CRM Tamago-DB
    5 Version: 2.0.1
     5Version: 2.0.2
    66Author: Tamago-DB
    77Text Domain: jobsearch
     
    7979/// the front end main page have to show a search form and some content
    8080
    81 /*************Class**********************************/
     81
    8282class jobsearch_Plugin
    8383{
     
    487487        $apiPages = $helper->tdb_jb_get_jobPage();
    488488
    489         //get polylang slug for rewrite rule if is set
    490         if ( function_exists('pll_the_languages') ) {
    491             $translationsSlugs = pll_the_languages(array('raw'=>1));
    492         } else {
     489        try {
     490            //get polylang slug for rewrite rule if is set
     491            if ( function_exists('pll_the_languages') ) {
     492                $translationsSlugs = pll_the_languages(array('raw'=>1));
     493            } else {
     494                $translationsSlugs = null;
     495            }
     496        } catch (Exception $e){
    493497            $translationsSlugs = null;
    494498        }
     499
    495500
    496501        //get all pages using shortcode
Note: See TracChangeset for help on using the changeset viewer.