Add missing require

This commit is contained in:
Michal Čihař 2012-10-16 11:15:01 +02:00
parent 3a52a91613
commit b8be2a8cc9
4 changed files with 14 additions and 6 deletions

View File

@ -12,6 +12,8 @@ if (! defined('PHPMYADMIN')) {
/* Get the transformations interface */
require_once "libraries/plugins/TransformationsPlugin.class.php";
/* For PMA_transformation_global_html_replace */
require_once 'libraries/transformations.lib.php';
/**
* Provides common methods for all of the link transformations plugins.
@ -84,4 +86,4 @@ abstract class ImageLinkTransformationsPlugin extends TransformationsPlugin
return "Link";
}
}
?>
?>

View File

@ -12,6 +12,8 @@ if (! defined('PHPMYADMIN')) {
/* Get the transformations interface */
require_once "libraries/plugins/TransformationsPlugin.class.php";
/* For PMA_transformation_global_html_replace */
require_once 'libraries/transformations.lib.php';
/**
* Provides common methods for all of the inline transformations plugins.
@ -98,4 +100,4 @@ abstract class InlineTransformationsPlugin extends TransformationsPlugin
return "Inline";
}
}
?>
?>

View File

@ -12,6 +12,8 @@ if (! defined('PHPMYADMIN')) {
/* Get the transformations interface */
require_once "libraries/plugins/TransformationsPlugin.class.php";
/* For PMA_transformation_global_html_replace */
require_once 'libraries/transformations.lib.php';
/**
* Provides common methods for all of the image link transformations plugins.
@ -91,4 +93,4 @@ abstract class TextImageLinkTransformationsPlugin extends TransformationsPlugin
return "Image Link";
}
}
?>
?>

View File

@ -12,6 +12,8 @@ if (! defined('PHPMYADMIN')) {
/* Get the transformations interface */
require_once "libraries/plugins/TransformationsPlugin.class.php";
/* For PMA_transformation_global_html_replace */
require_once 'libraries/transformations.lib.php';
/**
* Provides common methods for all of the link transformations plugins.
@ -45,9 +47,9 @@ abstract class TextLinkTransformationsPlugin extends TransformationsPlugin
*/
public function applyTransformation($buffer, $options = array(), $meta = '')
{
$append_part = (isset($options[2]) && $options[2]) ? '' : $buffer;
$transform_options = array (
'string' => '<a href="'
. PMA_linkURL((isset($options[0]) ? $options[0] : '') . $append_part)
@ -93,4 +95,4 @@ abstract class TextLinkTransformationsPlugin extends TransformationsPlugin
return "Link";
}
}
?>
?>