all repos — wp-ffpc @ 8bc33102a90bf65d1f26df7131d2fc4fbdf08209

comments and cleanup
Peter Molnar hello@petermolnar.eu
Tue, 25 Jun 2013 17:27:48 +0100
commit

8bc33102a90bf65d1f26df7131d2fc4fbdf08209

parent

879425e38e4c3f42ab99b926f064513618543422

1 files changed, 2 insertions(+), 26 deletions(-)

jump to
M wp-ffpc-class.phpwp-ffpc-class.php

@@ -1121,8 +1121,8 @@ $permalink = get_post_permalink( $post->ID );

break; } + /* in case the bloglinks are relative links add the base url, site specific */ $baseurl = get_blog_option ( $site, 'siteurl' ); - if ( !strstr( $permalink, $baseurl ) ) { $permalink = $baseurl . $permalink; }

@@ -1144,31 +1144,7 @@ }

} /** - * [TODO] this function will be used with error coded log messages - * display predefined message based on code - * - * - private function message ( $code, $type, $echo = true ) { - switch ( $type ) { - case 'notice': - $a = $this->notices; - break; - case 'warning': - $a = $this->warnings; - break; - default: - $a = $this->errors; - break; - } - - $r = isset ( $a[ $code ] ) ? $a[ $code ] : ''; - - if ( $echo ) echo $r; - else return $r; - }*/ - - /** - * print errors + * print errors, called by global errors hook * */ public function display_errors ( ) {