From d5e2a07fb514a2f16077b43e365766014fe87ea6 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 11 Dec 2009 03:24:00 +0100 Subject: update to new storage structure --- paste/paste.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'paste') diff --git a/paste/paste.php b/paste/paste.php index fbcdf2c..51f5d9f 100644 --- a/paste/paste.php +++ b/paste/paste.php @@ -35,6 +35,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. require_once("config.php"); require_once("include/pastify.inc"); +// check config if (!is_subclass_of($config['storage'], 'StorageEngine')) { header('HTTP/1.0 503 Service Unavailable'); @@ -94,7 +95,7 @@ if (isset($_POST['text']) && "" != ($ttemp = rtrim($_POST['text']))) $text = stripslashes($text); $finalText = PastifyText($text, $language, $desc); - $url = CreatePage($finalText); + $url = $config['storage']->setContent($finalText); # Note: this function was pretty specific to my implementation. It stored # paste metadata about the language used, description, and URL, as well as -- cgit v1.2.3