Changeset 8314
- Timestamp:
- 03/16/2007 11:01:07 PM (19 years ago)
- Location:
- gengo/trunk/gengo
- Files:
-
- 2 edited
-
gengo.php (modified) (5 diffs)
-
gengo_template_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
gengo/trunk/gengo/gengo.php
r8232 r8314 106 106 $this->synblock_table = GENGO_SYNBLOCK_TABLE; 107 107 $this->language_cookie = 'gengo_language' . COOKIEHASH; 108 $this->default_url_exclusions = array('/wp-content', 'wp-login.php', 'xmlrpc.php', 'wp-pass.php', 'wp-register.php', 'theme-editor.php' );108 $this->default_url_exclusions = array('/wp-content', 'wp-login.php', 'xmlrpc.php', 'wp-pass.php', 'wp-register.php', 'theme-editor.php'); 109 109 $this->append_urls = get_option('gengo_append_urls'); 110 110 $this->site_home = get_option('home'); … … 1048 1048 // Don't do this for the admin section. 1049 1049 if (!$this->languages || $this->is_excluded_url($_SERVER['REQUEST_URI']) || is_admin()) { 1050 return ($this->language_preference_id) ? $this->language_preference[0]->locale : $locale; 1050 if ($this->language_preference_id) { 1051 $locale = $this->language_preference[0]->locale; 1052 } 1053 return apply_filters('gengo_locale', $locale); 1051 1054 } 1052 1055 1053 1056 if (strstr($_SERVER['PHP_SELF'], 'wp-comments-post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-trackback.php')) { 1054 1057 $this->strict_links = false; 1055 return $locale;1058 return ; 1056 1059 } 1057 1060 … … 1158 1161 } 1159 1162 } 1160 return $this->language_preference[0]->locale;1163 return ; 1161 1164 } 1162 1165 … … 1919 1922 /* 1920 1923 1924 1925 1926 1927 1921 1928 0.91: 1922 1929 ----- … … 1931 1938 JS correctly scoped and sorted, because it's crap at the moment. 1932 1939 gengo.css 1933 Use X-JSON to send back a simple completion message for all Ajax operations.1940 s. 1934 1941 No language - still create a wp-post2lang entry, but set langauge to 0, or no entry? Will fix lots of plugin based errors. 1935 1942 Remove deprecated functions. -
gengo/trunk/gengo/gengo_template_functions.php
r8217 r8314 111 111 112 112 function gengo_synblock($block_name, $return = false) { 113 return gengo_snippet($block_name, $return = false);113 return gengo_snippet($block_name, $return); 114 114 } 115 115
Note: See TracChangeset
for help on using the changeset viewer.