diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-11 03:24:00 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2009-12-11 03:24:00 +0100 |
commit | d5e2a07fb514a2f16077b43e365766014fe87ea6 (patch) | |
tree | e0ee7f77ba52c4eb69c2a4cffd0b52f91dfaae82 /paste/paste.php | |
parent | 77e5a85ff8fbf372cee3b2ded3fc2aab3f4377f0 (diff) | |
download | rafb-nopaste-d5e2a07fb514a2f16077b43e365766014fe87ea6.tar.gz rafb-nopaste-d5e2a07fb514a2f16077b43e365766014fe87ea6.tar.xz rafb-nopaste-d5e2a07fb514a2f16077b43e365766014fe87ea6.zip |
update to new storage structure
Diffstat (limited to 'paste/paste.php')
-rw-r--r-- | paste/paste.php | 3 |
1 files changed, 2 insertions, 1 deletions
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 |