Plugin Directory

Changeset 383262


Ignore:
Timestamp:
05/10/2011 04:47:21 PM (15 years ago)
Author:
OsExpert.net
Message:

Added errormessage to AdminBackend if templatefile not found.

Location:
wp-seo-tags
Files:
15 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-seo-tags/trunk/readme.txt

    r381388 r383262  
    55Requires at least: 3.0
    66Tested up to: 3.1.2
    7 Stable tag: 2.2.5
     7Stable tag: 2.2.5.1
    88
    99Logs incoming queries from searchengines like Bing, Google and Yahoo and display them in your sidebar.
     
    1818
    1919== Changelog ==
     20
     21
     22<ul>
     23    <span>2.2.5.1</span>
     24    <li>Added an errormessage to Admin' s Backend if the template file could not be found.</li>
     25</ul>
    2026
    2127<ul>
  • wp-seo-tags/trunk/wp-seo-tags.php

    r381388 r383262  
    44Plugin URI: http://www.saquery.com/wordpress/wp-seo-tags
    55Description: WP SEO Tags
    6 Version: 2.2.5
     6Version: 2.2.5.1
    77Author: Stephan Ahlf
    88Author URI: http://saquery.com
     
    188188        return __($txt,'wp-seo-tags');
    189189    }
     190   
     191    function saq_wpseotags_get_template_folder(){
     192        $url = get_bloginfo("template_url");
     193        $temp = explode("wp-content/themes/",$url);
     194        $active_theme_name = $temp[1];  // The second value will be the theme name
     195        return str_replace("\\", "/", get_theme_root()."/".$active_theme_name) ;
     196    }
     197   
    190198    function saq_wpseotags_adminoptions1(){
    191199        global $wpdb;
     200        $templatePath = saq_wpseotags_get_template_folder()."/";
     201        $templateFile = "wp-seo-tags-template.php";
     202        $fn = $templatePath.$templateFile;
     203       
     204        if (!is_file($fn)){
     205            ?>
     206                <div class="error"><strong>WP SEO TAGS - ERROR! <br /><br />The file "<?php echo $fn; ?>" could not be found.</strong> <br />
     207                Please upload a copy of this file to your server.</div>
     208            <?php
     209        }
    192210
    193211
Note: See TracChangeset for help on using the changeset viewer.