From 3bfc42a5eb584e199d763b23206de6d35eace5eb Mon Sep 17 00:00:00 2001 From: pecesama Date: Mon, 3 Nov 2008 23:15:10 +0000 Subject: [PATCH] Minor fixes --- plugins/hola.php | 15 --------------- plugins/kodrs.php | 23 ++++++++++++++--------- update.php | 2 +- 3 files changed, 15 insertions(+), 25 deletions(-) delete mode 100644 plugins/hola.php diff --git a/plugins/hola.php b/plugins/hola.php deleted file mode 100644 index cc94824..0000000 --- a/plugins/hola.php +++ /dev/null @@ -1,15 +0,0 @@ -addAction('gelato_init', 'saluda'); - } - - function saluda() { - echo "Hola mundo desde plugin en gelato
"; - } - -} - -?> diff --git a/plugins/kodrs.php b/plugins/kodrs.php index afebd41..3e49e11 100644 --- a/plugins/kodrs.php +++ b/plugins/kodrs.php @@ -1,12 +1,5 @@ addAction('post_content', 'source_code_beautifier'); } + + function info() + { + return array( + 'name' => 'kodrs', + 'version' => '0.1', + 'url' => 'http://plugins.gelatocms.com/kodrs/', + 'author' => 'Pedro Santana', + 'authorurl' => 'http://www.pecesama.net/', + 'license' => 'MIT License', + 'description' => 'Geshify your source codes', + ); + } function source_code_beautifier() { global $rows; if(count($rows)>0){ foreach($rows as $key=>$post){ - // Si no es tipo 'post' entonces no tiene 'Body' :) if($post["postType"]=="post"){ $text = $rows[$key]['Body']; $result = preg_replace_callback("/(.*)<\/code>/siU", diff --git a/update.php b/update.php index 98830fb..7ec1540 100644 --- a/update.php +++ b/update.php @@ -16,7 +16,7 @@ if(!defined('entry')) define('entry',true); require('entry.php'); global $configFile, $db; -if (!file_exists($configFile) || true) { +if (!file_exists($configFile) == true) { $mensaje = '

'.__("Error reading configuration file").'

'.__("There does not seem to be a config.php file. I need this before we can get started.").'